fix: add error message for invalid flags

Closes #4193
This commit is contained in:
Jose Diaz-Gonzalez
2021-01-18 00:29:10 -05:00
parent 89cc896c27
commit e39a5663bf
2 changed files with 44 additions and 0 deletions

View File

@@ -21,6 +21,12 @@ cmd-plugin-install() {
plugn trigger install
;;
*)
if [[ -n "$FLAG" ]]; then
dokku_log_warn "First argument must be --core or url to plugin"
dokku_log_warn "Valid prefixes: https:, git:, ssh:, file:"
dokku_log_warn "Valid suffixes: .tar.gz, .tgz"
dokku_log_fail "Please retry with valid arguments"
fi
plugn trigger install
;;
esac