mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
Merge pull request #4567 from dokku/4553-plugin-update
Ensure plugin:update updates all plugins when no plugin is specified
This commit is contained in:
@@ -23,6 +23,18 @@ cmd-plugin-update() {
|
||||
fi
|
||||
|
||||
plugn update "$PLUGIN" "$PLUGIN_COMMITTISH"
|
||||
else
|
||||
pushd "$PLUGIN_ENABLED_PATH" >/dev/null
|
||||
for PLUGIN in *; do
|
||||
if [[ -d "${PLUGIN}" ]]; then
|
||||
if fn-is-core-plugin "${PLUGIN}"; then
|
||||
continue
|
||||
fi
|
||||
|
||||
plugn update "$PLUGIN"
|
||||
fi
|
||||
done
|
||||
popd &>/dev/null || pushd "/tmp" >/dev/null
|
||||
fi
|
||||
|
||||
plugn trigger update
|
||||
|
||||
Reference in New Issue
Block a user