use POSIX [ s1 = s2 ] syntax instead of [ s1 == s2 ]
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 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
diff --git a/regress/cmdline/pack.sh b/regress/cmdline/pack.sh
index b6d15ae..597e601 100755
--- a/regress/cmdline/pack.sh
+++ b/regress/cmdline/pack.sh
@@ -64,7 +64,7 @@ test_pack_all_loose_objects() {
ret=1
break
done
- if [ "$ret" == "1" ]; then
+ if [ "$ret" = "1" ]; then
break
fi
done
@@ -131,11 +131,11 @@ test_pack_exclude() {
echo "found excluded object $id in pack file" >&2
ret=1
fi
- if [ "$ret" == "1" ]; then
+ if [ "$ret" = "1" ]; then
break
fi
done
- if [ "$ret" == "1" ]; then
+ if [ "$ret" = "1" ]; then
test_done "$testroot" "$ret"
return 1
fi
@@ -147,12 +147,12 @@ test_pack_exclude() {
obj_id=${id0}${e}
excluded=0
for id in $excluded_ids; do
- if [ "$obj_id" == "$id" ]; then
+ if [ "$obj_id" = "$id" ]; then
excluded=1
break
fi
done
- if [ "$excluded" == "1" ]; then
+ if [ "$excluded" = "1" ]; then
continue
fi
if grep -q ^$obj_id $testroot/stdout; then
@@ -162,7 +162,7 @@ test_pack_exclude() {
ret=1
break
done
- if [ "$ret" == "1" ]; then
+ if [ "$ret" = "1" ]; then
break
fi
done
@@ -230,11 +230,11 @@ test_pack_include() {
echo "found excluded object $id in pack file" >&2
ret=1
fi
- if [ "$ret" == "1" ]; then
+ if [ "$ret" = "1" ]; then
break
fi
done
- if [ "$ret" == "1" ]; then
+ if [ "$ret" = "1" ]; then
test_done "$testroot" "$ret"
return 1
fi
@@ -246,12 +246,12 @@ test_pack_include() {
included_ids="$included_ids $commit0 $tree0"
for obj_id in $included_ids; do
for id in $excluded_ids; do
- if [ "$obj_id" == "$id" ]; then
+ if [ "$obj_id" = "$id" ]; then
excluded=1
break
fi
done
- if [ "$excluded" == "1" ]; then
+ if [ "$excluded" = "1" ]; then
continue
fi
if grep -q ^$obj_id $testroot/stdout; then
@@ -306,7 +306,7 @@ test_pack_ambiguous_arg() {
gotadmin pack -r $testroot/repo -x master master \
> $testroot/stdout 2> $testroot/stderr
ret="$?"
- if [ "$ret" == "0" ]; then
+ if [ "$ret" = "0" ]; then
echo "gotadmin pack succeeded unexpectedly" >&2
test_done "$testroot" "1"
return 1
@@ -400,11 +400,11 @@ test_pack_loose_only() {
echo "found excluded object $id in pack file" >&2
ret=1
fi
- if [ "$ret" == "1" ]; then
+ if [ "$ret" = "1" ]; then
break
fi
done
- if [ "$ret" == "1" ]; then
+ if [ "$ret" = "1" ]; then
test_done "$testroot" "$ret"
return 1
fi
@@ -416,12 +416,12 @@ test_pack_loose_only() {
obj_id=${id0}${e}
excluded=0
for id in $excluded_ids; do
- if [ "$obj_id" == "$id" ]; then
+ if [ "$obj_id" = "$id" ]; then
excluded=1
break
fi
done
- if [ "$excluded" == "1" ]; then
+ if [ "$excluded" = "1" ]; then
continue
fi
if grep -q ^$obj_id $testroot/stdout; then
@@ -431,7 +431,7 @@ test_pack_loose_only() {
ret=1
break
done
- if [ "$ret" == "1" ]; then
+ if [ "$ret" = "1" ]; then
break
fi
done
@@ -510,7 +510,7 @@ test_pack_all_objects() {
ret=1
break
done
- if [ "$ret" == "1" ]; then
+ if [ "$ret" = "1" ]; then
break
fi
done
@@ -555,7 +555,7 @@ test_pack_bad_ref() {
gotadmin pack -r $testroot/repo refs/got/worktree/ \
> $testroot/stdout 2> $testroot/stderr
ret="$?"
- if [ "$ret" == "0" ]; then
+ if [ "$ret" = "0" ]; then
echo "gotadmin pack succeeded unexpectedly" >&2
test_done "$testroot" "1"
return 1