commit: 3f2a057b9e72347217ad1bda14695daef6ca1c33
parent 49da680801952afba3de52055b0cbc49e0190763
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Thu, 15 Aug 2024 17:25:51 +0200
test-cmd/mktemp.sh: use = operator in […] not ==
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test-cmd/mktemp.sh b/test-cmd/mktemp.sh
@@ -22,7 +22,7 @@ t_mktemp()
rm -f "${out%
}"
- if [ "$ret" == 0 ] && [ "$test_ret" == 0 ]; then
+ if [ "$ret" = 0 ] && [ "$test_ret" = 0 ]; then
printf 'ok %d - %s\n' "$count" "$1"
else
printf 'not ok %d - %s\n' "$count" "$1"
@@ -49,7 +49,7 @@ t_mkdtemp()
rm -fr "${out%
}"
- if [ "$ret" == 0 ] && [ "$test_ret" == 0 ]; then
+ if [ "$ret" = 0 ] && [ "$test_ret" = 0 ]; then
printf 'ok %d - %s\n' "$count" "$1"
else
printf 'not ok %d - %s\n' "$count" "$1"