[Robustness] nvm_list_aliases: avoid overwritten sort
This commit is contained in:
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user