chore: minor cleanup to container and argument handling

This commit is contained in:
Jose Diaz-Gonzalez
2018-04-03 01:21:50 -04:00
parent 85b00385a4
commit 867e3317aa
7 changed files with 12 additions and 10 deletions

View File

@@ -20,7 +20,7 @@ scheduler-docker-local-post-delete() {
local DOKKU_APP_CIDS=$(docker ps -a --no-trunc | egrep "dokku/${APP}:" | awk '{ print $1 }' | xargs)
if [[ -n "$DOKKU_APP_CIDS" ]]; then
# shellcheck disable=SC2086
docker rm -f $DOKKU_APP_CIDS &>/dev/null || true
docker rm -f $DOKKU_APP_CIDS > /dev/null 2>&1 || true
fi
# shellcheck disable=SC2046

View File

@@ -27,7 +27,7 @@ scheduler-docker-local-scheduler-stop() {
if [[ -n "$DOKKU_APP_CIDS" ]]; then
# shellcheck disable=SC2086
docker rm -f $DOKKU_APP_CIDS > /dev/null || true
docker rm -f $DOKKU_APP_CIDS > /dev/null 2>&1 || true
fi
fi
}