Merge pull request #3173 from dokku/silence-extra-error-message

fix: do not output error message twice
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2018-04-27 01:25:13 -04:00
commit 67dcf34f7a
1 file changed
+3 -1
+3 -1
View File
@@ -16,8 +16,10 @@ apps_create() {
} }
apps_destroy() { apps_destroy() {
local APP="$1"; local IMAGE_TAG=$(get_running_image_tag "$APP") declare desc="destroys an app"
declare APP="$1";
verify_app_name "$APP" verify_app_name "$APP"
local IMAGE_TAG=$(get_running_image_tag "$APP")
if [[ -z "$DOKKU_APPS_FORCE_DELETE" ]]; then if [[ -z "$DOKKU_APPS_FORCE_DELETE" ]]; then
dokku_log_warn "WARNING: Potentially Destructive Action" dokku_log_warn "WARNING: Potentially Destructive Action"