mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-06-27 11:38:43 +00:00
[Robustness] nvm_list_aliases
: avoid overwritten sort
This commit is contained in:
parent
bfce5889f7
commit
6aeab3349c
6
nvm.sh
6
nvm.sh
@ -1090,7 +1090,7 @@ nvm_list_aliases() {
|
|||||||
NVM_NO_COLORS="${NVM_NO_COLORS-}" NVM_CURRENT="${NVM_CURRENT}" nvm_print_alias_path "${NVM_ALIAS_DIR}" "${ALIAS_PATH}" &
|
NVM_NO_COLORS="${NVM_NO_COLORS-}" NVM_CURRENT="${NVM_CURRENT}" nvm_print_alias_path "${NVM_ALIAS_DIR}" "${ALIAS_PATH}" &
|
||||||
done
|
done
|
||||||
wait
|
wait
|
||||||
) | sort
|
) | command sort
|
||||||
|
|
||||||
(
|
(
|
||||||
local ALIAS_NAME
|
local ALIAS_NAME
|
||||||
@ -1103,7 +1103,7 @@ nvm_list_aliases() {
|
|||||||
} &
|
} &
|
||||||
done
|
done
|
||||||
wait
|
wait
|
||||||
) | sort
|
) | command sort
|
||||||
|
|
||||||
(
|
(
|
||||||
local LTS_ALIAS
|
local LTS_ALIAS
|
||||||
@ -1117,7 +1117,7 @@ nvm_list_aliases() {
|
|||||||
} &
|
} &
|
||||||
done
|
done
|
||||||
wait
|
wait
|
||||||
) | sort
|
) | command sort
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user