Commit 3379373c62efb02a719d4b6e040189f348470f0a

Christian Weisgerber 2021-08-26T12:00:16

use POSIX [ s1 = s2 ] syntax instead of [ s1 == s2 ]

diff --git a/regress/cmdline/cleanup.sh b/regress/cmdline/cleanup.sh
index b403a13..d950aa9 100755
--- a/regress/cmdline/cleanup.sh
+++ b/regress/cmdline/cleanup.sh
@@ -247,7 +247,7 @@ test_cleanup_precious_objects() {
 	gotadmin cleanup -a -q -r $testroot/repo > $testroot/stdout \
 		2> $testroot/stderr
 	ret="$?"
-	if [ "$ret" == "0" ]; then
+	if [ "$ret" = "0" ]; then
 		echo "gotadmin cleanup succeeded unexpectedly" >&2
 		test_done "$testroot" "1"
 		return 1
@@ -297,7 +297,7 @@ test_cleanup_missing_pack_file() {
 	gotadmin cleanup -a -q -r $testroot/repo > $testroot/stdout \
 		2> $testroot/stderr
 	ret="$?"
-	if [ "$ret" == "0" ]; then
+	if [ "$ret" = "0" ]; then
 		echo "gotadmin cleanup succeeded unexpectedly" >&2
 		test_done "$testroot" "1"
 		return 1
diff --git a/regress/cmdline/fetch.sh b/regress/cmdline/fetch.sh
index c0be768..2e47e88 100755
--- a/regress/cmdline/fetch.sh
+++ b/regress/cmdline/fetch.sh
@@ -1128,7 +1128,7 @@ test_fetch_delete_remote_refs() {
 	got fetch -q -r $testroot/repo-clone -X > $testroot/stdout \
 		2> $testroot/stderr
 	ret="$?"
-	if [ "$ret" == "0" ]; then
+	if [ "$ret" = "0" ]; then
 		echo "got fetch command succeeded unexpectedly" >&2
 		test_done "$testroot" "$ret"
 		return 1