summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-03-15 10:59:25 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-03-31 14:30:17 +0000
commit8ad5eb6a0191c245ed2dcea98f3416dc7bddd669 (patch)
treee506b1e6f4276069534695edea55a8e74264cd19 /lib
parentUpdating year in copyright notices in container commands. (diff)
downloadcompute-tools-8ad5eb6a0191c245ed2dcea98f3416dc7bddd669.tar.xz
compute-tools-8ad5eb6a0191c245ed2dcea98f3416dc7bddd669.zip
Making removal message and answer handling of container remove command more userfriendly.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'lib')
-rwxr-xr-xlib/container/remove6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/container/remove b/lib/container/remove
index b1f4623..081df33 100755
--- a/lib/container/remove
+++ b/lib/container/remove
@@ -97,11 +97,13 @@ case "${FORCE}" in
;;
*)
- echo -n "'${NAME}': remove container '${NAME}'? "
+ echo -n "'${NAME}': remove container '${NAME}' [y|N]? "
read FORCE
+ FORCE="$(echo ${FORCE} | tr [A-Z] [a-z])"
+
case "${FORCE}" in
- y|Y)
+ y|yes)
;;
*)