aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar √Čtienne Deparis 2020-09-05 17:27:59 +0200
committerGravatar √Čtienne Deparis 2020-09-05 17:27:59 +0200
commite49b81ca16d33600b3c29f655c42967f04031cde (patch)
tree733cf2da012a6adb809e11e95d9418d6fa77d807
parenta2729a1e786ea4e72c9d9d899def2a93439a4893 (diff)
downloadshell_utils-e49b81ca16d33600b3c29f655c42967f04031cde.tar.gz
shell_utils-e49b81ca16d33600b3c29f655c42967f04031cde.tar.xz
shell_utils-e49b81ca16d33600b3c29f655c42967f04031cde.zip
fix(various.sh): Fix docker clean function
-rw-r--r--various.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/various.sh b/various.sh
index a8d8510..76003c5 100644
--- a/various.sh
+++ b/various.sh
@@ -67,11 +67,8 @@ fix_nokia() {
clean_docker() {
[ "z$1" = z ] && return 1
list=($(sudo docker container ls -a -f "ancestor=$1" -f status=exited -q))
- [ "z$list" = z ] && return
- sudo docker container rm ${list[@]}
+ [ "z$list" != z ] && sudo docker container rm ${list[@]}
sudo docker image rm $(sudo docker image ls "$1" -q)
- sudo docker network prune -f
- sudo docker builder prune -f
}
install_git_hooks() {