Merge 9b1899f203 into 39d9a42c35
This commit is contained in:
commit
d0ba578fad
17
nvm.sh
17
nvm.sh
|
|
@ -2772,6 +2772,10 @@ nvm() {
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if ! nvm_stdout_is_terminal; then
|
||||||
|
NVM_NO_COLORS="--no-colors"
|
||||||
|
fi
|
||||||
|
|
||||||
local INITIAL_COLOR_INFO
|
local INITIAL_COLOR_INFO
|
||||||
local RED_INFO
|
local RED_INFO
|
||||||
local GREEN_INFO
|
local GREEN_INFO
|
||||||
|
|
@ -3805,6 +3809,11 @@ nvm() {
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if ! nvm_stdout_is_terminal; then
|
||||||
|
NVM_NO_COLORS="--no-colors"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "${PATTERN-}" ] && [ -n "${NVM_NO_ALIAS-}" ]; then
|
if [ -n "${PATTERN-}" ] && [ -n "${NVM_NO_ALIAS-}" ]; then
|
||||||
nvm_err '`--no-alias` is not supported when a pattern is provided.'
|
nvm_err '`--no-alias` is not supported when a pattern is provided.'
|
||||||
return 55
|
return 55
|
||||||
|
|
@ -3863,6 +3872,10 @@ nvm() {
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if ! nvm_stdout_is_terminal; then
|
||||||
|
NVM_NO_COLORS="--no-colors"
|
||||||
|
fi
|
||||||
|
|
||||||
local NVM_OUTPUT
|
local NVM_OUTPUT
|
||||||
local EXIT_CODE
|
local EXIT_CODE
|
||||||
NVM_OUTPUT="$(NVM_LTS="${NVM_LTS-}" nvm_remote_versions "${PATTERN}" &&:)"
|
NVM_OUTPUT="$(NVM_LTS="${NVM_LTS-}" nvm_remote_versions "${PATTERN}" &&:)"
|
||||||
|
|
@ -3964,6 +3977,10 @@ nvm() {
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if ! nvm_stdout_is_terminal; then
|
||||||
|
NVM_NO_COLORS="--no-colors"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "${TARGET}" ]; then
|
if [ -z "${TARGET}" ]; then
|
||||||
# for some reason the empty string was explicitly passed as the target
|
# for some reason the empty string was explicitly passed as the target
|
||||||
# so, unalias it.
|
# so, unalias it.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue