Skip to content

Commit

Permalink
[Robustness] nvm_list_aliases: avoid overwritten sort
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Oct 23, 2023
1 parent bfce588 commit 6aeab33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}" &
done
wait
) | sort
) | command sort

(
local ALIAS_NAME
Expand All @@ -1103,7 +1103,7 @@ nvm_list_aliases() {
} &
done
wait
) | sort
) | command sort

(
local LTS_ALIAS
Expand All @@ -1117,7 +1117,7 @@ nvm_list_aliases() {
} &
done
wait
) | sort
) | command sort
return
}

Expand Down

0 comments on commit 6aeab33

Please sign in to comment.