Skip to content

Commit

Permalink
De-double quote
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines authored and solana-grimes committed Jun 19, 2018
1 parent 2f4a92e commit e592243
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ci/hoover.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ echo --- Delete all exited containers first
set -x
exited=$(docker ps -aq --no-trunc --filter "status=exited")
if [[ -n "$exited" ]]; then
docker rm "$exited"
# shellcheck disable=SC2086 # Don't want to double quote "$exited"
docker rm $exited
fi
)

Expand All @@ -17,7 +18,8 @@ echo --- Delete untagged images
set -x
untagged=$(docker images | grep '<none>'| awk '{ print $3 }')
if [[ -n "$untagged" ]]; then
docker rmi "$untagged"
# shellcheck disable=SC2086 # Don't want to double quote "$untagged"
docker rmi $untagged
fi
)

Expand All @@ -26,7 +28,8 @@ echo --- Delete all dangling images
set -x
dangling=$(docker images --filter 'dangling=true' -q --no-trunc | sort | uniq)
if [[ -n "$dangling" ]]; then
docker rmi "$dangling"
# shellcheck disable=SC2086 # Don't want to double quote "$dangling"
docker rmi $dangling
fi
)

Expand Down

0 comments on commit e592243

Please sign in to comment.