Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
make shell script POSIX compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
kodebach committed Sep 15, 2021
1 parent 4eec1ca commit 1e267b7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/shell/gen/highlevel/commands.check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ if [ "$res" = "0" ]; then
echo "valgrind dummy exited with: $res"
fi

res=$(("$res" != 0))
res=$((res != 0))
fi

if [ "$res" = 0 ]; then
Expand All @@ -149,7 +149,7 @@ if [ "$res" = 0 ]; then
echo "valgrind dummy -v get -v ab cd exited with: $?"
fi

res=$(("$res" != 0))
res=$((res != 0))
fi

if [ "$res" = "0" ]; then
Expand All @@ -162,7 +162,7 @@ if [ "$res" = "0" ]; then
echo "valgrind dummy -v get -v ab cd exited with: $?"
fi

res=$(("$res" != 0))
res=$((res != 0))
fi

if [ "$res" = "0" ]; then
Expand All @@ -175,7 +175,7 @@ if [ "$res" = "0" ]; then
echo "valgrind dummy -v get -v ab cd exited with: $?"
fi

res=$(("$res" == 0))
res=$((res == 0))
fi

if [ "$res" = "0" ]; then
Expand All @@ -188,7 +188,7 @@ if [ "$res" = "0" ]; then
echo "valgrind dummy get meta -v a b exited with: $?"
fi

res=$(("$res" != 0))
res=$((res != 0))
fi

if [ "$res" = "0" ]; then
Expand All @@ -201,7 +201,7 @@ if [ "$res" = "0" ]; then
echo "valgrind dummy set def -2 exited with: $?"
fi

res=$(("$res" != 0))
res=$((res != 0))
fi

if [ "$res" = "0" ]; then
Expand All @@ -214,7 +214,7 @@ if [ "$res" = "0" ]; then
echo "valgrind dummy abc -v def exited with: $?"
fi

res=$(("$res" != 0))
res=$((res != 0))
fi

cd ..
Expand Down

0 comments on commit 1e267b7

Please sign in to comment.