diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-03-15 10:59:25 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-03-31 14:30:17 +0000 |
commit | 8ad5eb6a0191c245ed2dcea98f3416dc7bddd669 (patch) | |
tree | e506b1e6f4276069534695edea55a8e74264cd19 /lib/container/remove | |
parent | Updating year in copyright notices in container commands. (diff) | |
download | compute-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/container/remove')
-rwxr-xr-x | lib/container/remove | 6 |
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) ;; *) |