X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=functions-more.sh;h=361d8b4e711b218e99f7088a0994f2f5c1c99ae9;hb=8543c1ce1e1c728e89f4e1b4efd4a79f52d5ca2e;hp=be669949afbf7fbf3d3a15138e269d9b0f736605;hpb=80c3351124680d06fbbfa9a43dfd359d00246c3c;p=carnet-tools-cn.git 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