summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/yesno4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/yesno b/scripts/yesno
index 9955286..3e10e09 100755
--- a/scripts/yesno
+++ b/scripts/yesno
@@ -2,7 +2,7 @@
# Usage: yesno prompt...
default=
-if [ $1 == "-y" ]
+if [ "$1" = "-y" ]
then default='y'; shift
fi
@@ -14,7 +14,7 @@ fi
while true
do
read -p "$prompt" || exit 1
- if [ -z "$REPLY" -a ! -z $default ]
+ if [ -z "$REPLY" -a ! -z "$default" ]
then REPLY=$default
fi
case "$REPLY" in