🐛 Prevent client from prepending --app for network commands
The dokku client auto-detects the app name from the git remote and prepends `--app <name>` to all SSH commands not explicitly excluded. Network commands like `network:create` take a network name (not an app name) as their first argument, so the injected app name was being used as the network name instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -240,6 +240,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
|
||||
[[ " network:create network:destroy network:exists network:info network:list network:rebuildall " == *" $CMD "* ]] && unset APP
|
||||
[[ "$CMD" =~ events*|plugin*|ssh-keys* ]] && unset APP
|
||||
[[ -n "$APP_ARG" ]] && [[ "$APP_ARG" == "--global" ]] && unset APP
|
||||
if [[ -n "$@" ]] && [[ -n "$APP" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user