You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by wi...@apache.org on 2020/08/20 07:35:03 UTC
[incubator-streampipes-installer] branch new_installer updated:
[STREAMPIPES-196] modified displayed text to account for volumes flag
This is an automated email from the ASF dual-hosted git repository.
wiener pushed a commit to branch new_installer
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes-installer.git
The following commit(s) were added to refs/heads/new_installer by this push:
new e0de907 [STREAMPIPES-196] modified displayed text to account for volumes flag
e0de907 is described below
commit e0de907082584bace6f6162bf0b4f1d936470e03
Author: Patrick Wiener <wi...@fzi.de>
AuthorDate: Thu Aug 20 09:34:49 2020 +0200
[STREAMPIPES-196] modified displayed text to account for volumes flag
---
cli/bin/commands/clean | 26 ++++++++++++++++++--------
1 file changed, 18 insertions(+), 8 deletions(-)
diff --git a/cli/bin/commands/clean b/cli/bin/commands/clean
index 4defe12..ced838d 100755
--- a/cli/bin/commands/clean
+++ b/cli/bin/commands/clean
@@ -47,7 +47,7 @@ remove_dangling_images(){
info "Removing dangling StreamPipes images"
run "docker images -f dangling=true | grep "apachestreampipes" | awk '{print $3}' | xargs docker rmi"
else
- warning "No dangling StreamPipes images found"
+ info "No dangling StreamPipes images found"
fi
}
@@ -57,7 +57,7 @@ remove_unused_volumes(){
info "Removing StreamPipes docker volumes"
run "docker volume rm $(docker volume ls --filter name=streampipes -q)"
else
- warning "No unused StreamPipes docker volumes found"
+ info "No unused StreamPipes docker volumes found"
fi
}
@@ -66,18 +66,28 @@ remove_docker_network(){
info "Removing StreamPipes docker network"
run "docker network rm spnet" > /dev/null 2>&1
else
- warning "No StreamPipes docker network found"
+ info "No StreamPipes docker network found"
fi
}
continue_check(){
- cat << EOF
-$(warning "This will remove:")
- - StreamPipes docker network
- - all unused StreamPipes data volumes
- - all dangling StreamPipes images
+
+ if [ "$clean_volumes" = true ]; then
+ cat << EOF
+ $(warning "This will remove:")
+ - StreamPipes docker network
+ - all unused StreamPipes data volumes
+ - all dangling StreamPipes images
EOF
+ else
+ cat << EOF
+ $(warning "This will remove:")
+ - StreamPipes docker network
+ - all dangling StreamPipes images
+
+EOF
+ fi
read -p "Are you sure you want to continue? [y/N]: " input
if [[ "$input" != "y" && "$input" != "Y" && "$input" != "yes" && "$input" != "Yes" && "$input" != "YES" ]]; then