Always install latest version of dependencies, not minimum
To match Plugin Management Behavior
Fixes #327, fixes #328
diff --git a/install-plugins.sh b/install-plugins.sh
index 2c8cc20..58cb011 100755
--- a/install-plugins.sh
+++ b/install-plugins.sh
@@ -104,15 +104,15 @@
if pluginInstalled="$(echo "${bundledPlugins}" | grep "^${plugin}:")"; then
pluginInstalled="${pluginInstalled//[$'\r']}"
local versionInstalled; versionInstalled=$(versionFromPlugin "${pluginInstalled}")
- local versionToInstall; versionToInstall=$(versionFromPlugin "${d}")
- if versionLT "${versionInstalled}" "${versionToInstall}"; then
- echo "Upgrading bundled dependency $d ($versionToInstall > $versionInstalled)"
- download "$plugin" "$versionToInstall" &
+ local minVersion; minVersion=$(versionFromPlugin "${d}")
+ if versionLT "${versionInstalled}" "${minVersion}"; then
+ echo "Upgrading bundled dependency $d ($minVersion > $versionInstalled)"
+ download "$plugin" &
else
- echo "Skipping already bundled dependency $d ($versionToInstall <= $versionInstalled)"
+ echo "Skipping already bundled dependency $d ($minVersion <= $versionInstalled)"
fi
else
- download "$plugin" "$(versionFromPlugin "${d}")" &
+ download "$plugin" &
fi
fi
done