Fix test script return value check to be more POSIX compliant

This commit is contained in:
Maxime Coste 2015-05-26 19:30:02 +01:00
parent 7cfcb68184
commit 8afa71d965

View File

@ -43,7 +43,7 @@ main() {
" "
${test}/../src/kak out -n -u -e "$kak_commands" ${test}/../src/kak out -n -u -e "$kak_commands"
retval=$? retval=$?
if (( retval != 0 )); then if [ $retval -ne 0 ]; then
echo "Kakoune returned error $retval" echo "Kakoune returned error $retval"
fi fi
for expect in $test_files; do for expect in $test_files; do