feat: use is_container_status everywhere

This commit is contained in:
Jose Diaz-Gonzalez
2018-02-12 02:21:34 -05:00
parent 7a6d771689
commit a8d42ea8be
3 changed files with 7 additions and 6 deletions

View File

@@ -45,8 +45,7 @@ enter_default_cmd() {
fi
fi
docker inspect "$ID" &> /dev/null || dokku_log_fail "Container does not exist"
docker inspect -f '{{ .State.Running }}' "$ID" | grep -q "true" > /dev/null || dokku_log_fail "Container is not running"
(is_container_status "$ID" "Running") || dokku_log_fail "Container is not running"
local DOKKU_APP_SHELL="/bin/bash"
DOKKU_APP_SHELL="$(config_get --global DOKKU_APP_SHELL || echo "$DOKKU_APP_SHELL")"