Download raw body.
patch.sh: use test = op. instead of ==
as per subject; i've used == when i really wanted to use just one = ok? commit 99b22dc2a68b9ef5382873df38c11dcd75df175b (main) from: Omar Polo <op@omarpolo.com> date: Tue Mar 8 08:43:42 2022 UTC use test(1) = operand instead of (non standard) == diff 60ceff941770f262108f0b17924715ec7477b2fa 019b80b2321304dd7a5cdc40c4713185ca84bb18 blob - 3545c70c0dda58bb94b05ce3283e0363d56bd80b blob + d956651dc1298af9cd688157029d3370fa2e25c2 --- regress/cmdline/patch.sh +++ regress/cmdline/patch.sh @@ -418,7 +418,7 @@ EOF > $testroot/stdout \ 2> $testroot/stderr ret=$? - if [ $ret == 0 ]; then # should fail + if [ $ret = 0 ]; then # should fail test_done $testroot 1 return 1 fi @@ -468,7 +468,7 @@ EOF > $testroot/stdout \ 2> $testroot/stderr ret=$? - if [ $ret == 0 ]; then + if [ $ret = 0 ]; then echo "got managed to apply an invalid patch" test_done $testroot 1 return 1 @@ -503,7 +503,7 @@ EOF > $testroot/stdout \ 2> $testroot/stderr ret=$? - if [ $ret == 0 ]; then + if [ $ret = 0 ]; then echo "got managed to apply an invalid patch" test_done $testroot 1 return 1 @@ -555,7 +555,7 @@ EOF > $testroot/stdout \ 2> $testroot/stderr ret=$? - if [ $ret == 0 ]; then # should fail + if [ $ret = 0 ]; then # should fail test_done $testroot 1 return 1 fi
patch.sh: use test = op. instead of ==