Use POSIX-compatible syntax in send.sh tests. Patch by naddy@
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
diff --git a/regress/cmdline/send.sh b/regress/cmdline/send.sh
index 9ac2cfc..e05bcb5 100755
--- a/regress/cmdline/send.sh
+++ b/regress/cmdline/send.sh
@@ -150,7 +150,7 @@ EOF
got send -q -r $testroot/repo > $testroot/stdout 2> $testroot/stderr
ret="$?"
- if [ "$ret" == "0" ]; then
+ if [ "$ret" = "0" ]; then
echo "got send command succeeded unexpectedly" >&2
test_done "$testroot" "$ret"
return 1
@@ -207,7 +207,7 @@ EOF
got send -q -r $testroot/repo -f > $testroot/stdout \
2> $testroot/stderr
ret="$?"
- if [ "$ret" == "0" ]; then
+ if [ "$ret" = "0" ]; then
echo "got send command succeeded unexpectedly" >&2
test_done "$testroot" "$ret"
return 1
@@ -328,7 +328,7 @@ EOF
got send -q -r $testroot/repo -d branch1 -b branch1 \
> $testroot/stdout 2> $testroot/stderr
ret="$?"
- if [ "$ret" == "0" ]; then
+ if [ "$ret" = "0" ]; then
echo "got send command succeeded unexpectedly" >&2
test_done "$testroot" "$ret"
return 1
@@ -366,7 +366,7 @@ EOF
got send -q -r $testroot/repo -d refs/heads/branchX origin \
> $testroot/stdout 2> $testroot/stderr
ret="$?"
- if [ "$ret" == "0" ]; then
+ if [ "$ret" = "0" ]; then
echo "got send command succeeded unexpectedly" >&2
test_done "$testroot" "$ret"
return 1
@@ -387,7 +387,7 @@ EOF
got send -q -r $testroot/repo -d refs/tags/1.0 origin \
> $testroot/stdout 2> $testroot/stderr
ret="$?"
- if [ "$ret" == "0" ]; then
+ if [ "$ret" = "0" ]; then
echo "got send command succeeded unexpectedly" >&2
test_done "$testroot" "$ret"
return 1
@@ -643,7 +643,7 @@ EOF
got send -q -r $testroot/repo -t 1.0 > $testroot/stdout \
2> $testroot/stderr
ret="$?"
- if [ "$ret" == "0" ]; then
+ if [ "$ret" = "0" ]; then
echo "got send command succeeded unexpectedly" >&2
test_done "$testroot" "$ret"
return 1
@@ -663,7 +663,7 @@ EOF
got send -q -r $testroot/repo -T > $testroot/stdout \
2> $testroot/stderr
ret="$?"
- if [ "$ret" == "0" ]; then
+ if [ "$ret" = "0" ]; then
echo "got send command succeeded unexpectedly" >&2
test_done "$testroot" "$ret"
return 1
@@ -844,7 +844,7 @@ test_send_all_branches() {
got send -a -q -r $testroot/repo-clone -b master > $testroot/stdout \
2> $testroot/stderr
ret="$?"
- if [ "$ret" == "0" ]; then
+ if [ "$ret" = "0" ]; then
echo "got send command succeeded unexpectedly" >&2
test_done "$testroot" "$ret"
return 1