Fix upgrade_system: asdf version checking for nodejs
This commit is contained in:
parent
432dd5db4c
commit
d211d40eb7
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue