From: Damir Dzeko Date: Mon, 21 Mar 2005 12:50:03 +0000 (+0000) Subject: r17: Minor tweaks in cp_yes_no X-Git-Tag: debian/3.0.0~88 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=8543c1ce1e1c728e89f4e1b4efd4a79f52d5ca2e;p=carnet-upgrade.git r17: Minor tweaks in cp_yes_no --- 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