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:
David Heinemeier HanssonandClaude Opus 5.5 authored and GitHub committed 2026-09-27 14:01:16 +02:00
1 parent c5b4db77d6
commit e558224acf
1 file changed
+7
+7
View File
@@ -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