summaryrefslogtreecommitdiffstats
path: root/lib/container/remove
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2019-01-11 05:41:20 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2019-02-17 12:11:18 +0000
commit3ff790bc8d2aec91d79f239712f888dcbdfdb0c1 (patch)
tree1c1fee04f084701425c62baaf2a5852bad226af3 /lib/container/remove
parentSetting default debian distribution to buster in debootstrap container create... (diff)
downloadcompute-tools-3ff790bc8d2aec91d79f239712f888dcbdfdb0c1.tar.xz
compute-tools-3ff790bc8d2aec91d79f239712f888dcbdfdb0c1.zip
Adding verbose output when using '-n ALL' options with container commands.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-xlib/container/remove6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/container/remove b/lib/container/remove
index 6244233..7b59ed1 100755
--- a/lib/container/remove
+++ b/lib/container/remove
@@ -125,6 +125,12 @@ case "${NAME}" in
for NAME in ${NAMES}
do
+ case "${VERBOSE}" in
+ true)
+ echo "Removing container ${NAME}..."
+ ;;
+ esac
+
container remove --name ${NAME} ${OPTIONS_ALL} || true
done