Skip to content

Commit 6aeab33

Browse files
committed
[Robustness] nvm_list_aliases: avoid overwritten sort
1 parent bfce588 commit 6aeab33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nvm.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ nvm_list_aliases() {
10901090
NVM_NO_COLORS="${NVM_NO_COLORS-}" NVM_CURRENT="${NVM_CURRENT}" nvm_print_alias_path "${NVM_ALIAS_DIR}" "${ALIAS_PATH}" &
10911091
done
10921092
wait
1093-
) | sort
1093+
) | command sort
10941094

10951095
(
10961096
local ALIAS_NAME
@@ -1103,7 +1103,7 @@ nvm_list_aliases() {
11031103
} &
11041104
done
11051105
wait
1106-
) | sort
1106+
) | command sort
11071107

11081108
(
11091109
local LTS_ALIAS
@@ -1117,7 +1117,7 @@ nvm_list_aliases() {
11171117
} &
11181118
done
11191119
wait
1120-
) | sort
1120+
) | command sort
11211121
return
11221122
}
11231123

0 commit comments

Comments
 (0)