remove quoting around cleanup and disable lint for those lines. also make cleanup test more robust
This commit is contained in:
1 parent
70e1e5d14d
commit
f366a37cd1
2 files changed
+9
-6
No files matched your search
@@ -122,9 +122,11 @@ case "$1" in
|
||||
|
||||
cleanup)
|
||||
# delete all non-running container
|
||||
docker rm "$(docker ps -a -f 'status=exited' -q)" &> /dev/null &
|
||||
# shellcheck disable=SC2046
|
||||
docker rm $(docker ps -a -f 'status=exited' -q) &> /dev/null &
|
||||
# delete unused images
|
||||
docker rmi "$(docker images -f 'dangling=true' -q)" &> /dev/null &
|
||||
# shellcheck disable=SC2046
|
||||
docker rmi $(docker images -f 'dangling=true' -q) &> /dev/null &
|
||||
;;
|
||||
|
||||
plugins)
|
||||
|
||||
Reference in new issue
Block a user