Merge pull request #2035 from stesie/patch-1

Fix ps_restart to not exit early
This commit is contained in:
Michael Hobbs
2016-03-28 13:01:17 -07:00

View File

@@ -128,9 +128,11 @@ ps_restart() {
local APP="$1"; verify_app_name "$APP" local APP="$1"; verify_app_name "$APP"
local IMAGE_TAG=$(get_running_image_tag "$APP") local IMAGE_TAG=$(get_running_image_tag "$APP")
! (is_deployed "$APP") && echo "App $APP has not been deployed" && exit 0 if is_deployed "$APP"; then
release_and_deploy "$APP" "$IMAGE_TAG"
release_and_deploy "$APP" "$IMAGE_TAG" else
echo "App $APP has not been deployed"
fi
} }
ps_scale() { ps_scale() {