[Robustness] `nvm_list_aliases`: avoid overwritten sort

Jordan Harband 2023-10-23 14:05:37 -07:00
parent bfce5889f7
commit 6aeab3349c
No known key found for this signature in database
GPG Key ID: 9F6A681E35EF8B56
1 changed files with 3 additions and 3 deletions

6
nvm.sh
View File

@ -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
} }