diff --git a/plugins/ps/functions b/plugins/ps/functions index 4573d2f07..7cf96a52b 100755 --- a/plugins/ps/functions +++ b/plugins/ps/functions @@ -91,12 +91,14 @@ ps_start() { local APP="$1"; verify_app_name "$APP" local IMAGE_TAG=$(get_running_image_tag "$APP"); - ! (is_deployed "$APP") && echo "App $APP has not been deployed" && exit 0 - - if ! (is_app_running "$APP"); then - release_and_deploy "$APP" "$IMAGE_TAG" + if (is_deployed "$APP"); then + if ! (is_app_running "$APP"); then + release_and_deploy "$APP" "$IMAGE_TAG" + else + echo "App $APP already running" + fi else - echo "App $APP already running" + echo "App $APP has not been deployed" fi }