From 8ad5eb6a0191c245ed2dcea98f3416dc7bddd669 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 15 Mar 2016 11:59:25 +0100 Subject: Making removal message and answer handling of container remove command more userfriendly. Signed-off-by: Daniel Baumann --- lib/container/remove | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/container/remove') 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) ;; *) -- cgit v1.2.3