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 authored and GitHub committed 2021-04-16 12:26:43 -04:00
commit ecad66bf22
1 file changed
+12
+12
View File
@@ -23,6 +23,18 @@ cmd-plugin-update() {
fi fi
plugn update "$PLUGIN" "$PLUGIN_COMMITTISH" 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 fi
plugn trigger update plugn trigger update