fix: drop the app argument when calling storage:ensure-directory from remote client

Closes #5464
This commit is contained in:
Jose Diaz-Gonzalez
2022-11-15 22:53:57 -05:00
parent aa5a3953da
commit ba98055940

View File

@@ -147,6 +147,7 @@ main() {
[[ " apps certs help ls nginx shell storage trace version " == *" $CMD "* ]] && unset APP
[[ " certs:chain domains:add-global domains:remove-global domains:set-global ps:restore " == *" $CMD "* ]] && unset APP
[[ " storage:ensure-directory " == *" $CMD "* ]] && unset APP
[[ "$CMD" =~ events*|plugin*|ssh-keys* ]] && unset APP
[[ -n "$APP_ARG" ]] && [[ "$APP_ARG" == "--global" ]] && unset APP
[[ -n "$@" ]] && [[ -n "$APP" ]] && app_arg="--app $APP"