Loosen existing offline installs' exact Node pin (#13400)
5db4a401 fixed the installer, but machines already installed offline
still pin Node to the ISO's exact version, so mise up never updates it.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c5b4db77d6
commit
e558224acf
1 file changed
+7
@@ -0,0 +1,7 @@
|
||||
echo "Loosen the offline install's exact Node pin so mise up tracks new releases"
|
||||
|
||||
mise_config="$HOME/.config/mise/config.toml"
|
||||
|
||||
if [[ -f $mise_config ]] && grep -qE '^node = "[0-9]+\.[0-9]+\.[0-9]+"$' "$mise_config"; then
|
||||
sed -i -E 's/^node = "[0-9]+\.[0-9]+\.[0-9]+"$/node = "latest"/' "$mise_config"
|
||||
fi
|
||||
Reference in new issue
Block a user