commit: 6c5d1e77490e585308e5193a7710b28b57344883
parent 1aeeadeaa0405eaaeccdd4e2a897d2334adc1672
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sun, 21 Apr 2024 14:12:48 +0200
test-cmd/test.sh: Fix usage of == in system test
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test-cmd/test.sh b/test-cmd/test.sh
@@ -92,7 +92,7 @@ t 0 'true -o -X'
t 0 '\( \( \( a = a \) -o 1 \) -a 1 \) -a true'
t 1 '-h /'
t 0 '-r /'
-t "$([ "$(id -u)" == 0 ]; echo $?)" '-w /'
+t "$([ "$(id -u)" -eq 0 ]; echo $?)" '-w /'
t 0 '-x /bin/sh'
t 0 '-c /dev/null'
t 0 '-f /etc/passwd'