From 8543c1ce1e1c728e89f4e1b4efd4a79f52d5ca2e Mon Sep 17 00:00:00 2001 From: Damir Dzeko Date: Mon, 21 Mar 2005 12:50:03 +0000 Subject: [PATCH] r17: Minor tweaks in cp_yes_no --- functions-more.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions-more.sh b/functions-more.sh index be66994..361d8b4 100644 --- a/functions-more.sh +++ b/functions-more.sh @@ -1,8 +1,8 @@ # by ddzeko, Mon, 21 Mar 2005 13:35:42 +0100 -cn_yes_no () { +cp_yes_no () { [ "$CP_SCRIPT_DEBUG" ] && set -vx local prompt answer - prompt=$1 + prompt="$1" [ "$prompt" ] || prompt="Are you sure?" RET="" @@ -15,7 +15,7 @@ cn_yes_no () { echo -n "$prompt (y)es/(n)o: " read answer - case $answer in + case "$answer" in y*) echo RET=y -- 1.7.10.4