projects
/
carnet-upgrade.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80c3351
)
r17: Minor tweaks in cp_yes_no
author
Damir Dzeko
<Damir.Dzeko@CARNet.hr>
Mon, 21 Mar 2005 12:50:03 +0000
(12:50 +0000)
committer
Damir Dzeko
<Damir.Dzeko@CARNet.hr>
Mon, 21 Mar 2005 12:50:03 +0000
(12:50 +0000)
functions-more.sh
patch
|
blob
|
history
diff --git
a/functions-more.sh
b/functions-more.sh
index
be66994
..
361d8b4
100644
(file)
--- 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