From d211d40eb7c6cd8b0272323fc05f1cd8e06f2687 Mon Sep 17 00:00:00 2001 From: Tony Blyler <tony.blyler@cbinsights.com> Date: Wed, 7 May 2025 10:39:33 -0400 Subject: [PATCH] Fix upgrade_system: asdf version checking for nodejs --- chezmoi/dot_zshrc.d/executable_upgrade_system.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chezmoi/dot_zshrc.d/executable_upgrade_system.sh b/chezmoi/dot_zshrc.d/executable_upgrade_system.sh index aea74f3..139d8d0 100644 --- a/chezmoi/dot_zshrc.d/executable_upgrade_system.sh +++ b/chezmoi/dot_zshrc.d/executable_upgrade_system.sh @@ -70,8 +70,8 @@ upgrade_system() { }' "${HOME}/.tool-versions" if grep -q '^nodejs' "${HOME}/.tool-versions"; then asdf list all nodejs | - awk -v lts="$(asdf nodejs resolve lts)" \ - -v current="$(asdf current nodejs | awk '{print $2}')" \ + awk -v lts="$(asdf cmd nodejs resolve lts)" \ + -v current="$(asdf current --no-header nodejs | awk '{print $2}')" \ 'index($0, lts) == 1 {latest=$0} END { printf "nodejs\t"current"\t"latest"\t" if(latest == current) {