Commit: bf8a3d830e4be49ef153b8f858065426303b0b83
Parent: a2022aed000d3934ed2aee9af1703a96c941c21e
Author: Randy Palamar
Date: Tue, 22 Nov 2022 07:27:05 -0700
don't use bashisms in test
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test b/test
@@ -1,6 +1,6 @@
#!/bin/sh
-if [[ $1 -eq 1 ]]; then
+if [ $1 -eq 1 ]; then
echo "SETTITLE title
SETPROMPT prompt
@@ -8,7 +8,7 @@ SETDESC PROMPT
GETPIN
BYE" | ./pinentry-dmenu
-elif [[ $1 -eq 2 ]]; then
+elif [ $1 -eq 2 ]; then
echo "SETTITLE title
SETPROMPT confirm
@@ -16,7 +16,7 @@ SETDESC CONFIRM
confirm
BYE" | ./pinentry-dmenu
-elif [[ $1 -eq 3 ]]; then
+elif [ $1 -eq 3 ]; then
echo "SETTITLE title
SETPROMPT prompt