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:
Jose Diaz-Gonzalez
2021-04-16 12:26:43 -04:00
committed by GitHub

View File

@@ -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