fish: bump nvm.fish to 2.2.14
This commit is contained in:
parent
320cc2ed13
commit
47ac25f0de
@ -3,7 +3,7 @@ function _nvm_index_update
|
|||||||
|
|
||||||
set --local index $nvm_data/.index
|
set --local index $nvm_data/.index
|
||||||
|
|
||||||
if not command curl --location --silent $nvm_mirror/index.tab >$index.temp
|
if not command curl -q --location --silent $nvm_mirror/index.tab >$index.temp
|
||||||
command rm -f $index.temp
|
command rm -f $index.temp
|
||||||
echo "nvm: Can't update index, host unavailable: \"$nvm_mirror\"" >&2
|
echo "nvm: Can't update index, host unavailable: \"$nvm_mirror\"" >&2
|
||||||
return 1
|
return 1
|
||||||
|
@ -29,7 +29,7 @@ function nvm --description "Node version manager"
|
|||||||
|
|
||||||
switch "$cmd"
|
switch "$cmd"
|
||||||
case -v --version
|
case -v --version
|
||||||
echo "nvm, version 2.2.13"
|
echo "nvm, version 2.2.14"
|
||||||
case "" -h --help
|
case "" -h --help
|
||||||
echo "Usage: nvm install <version> Download and activate the specified Node version"
|
echo "Usage: nvm install <version> Download and activate the specified Node version"
|
||||||
echo " nvm install Install the version specified in the nearest .nvmrc file"
|
echo " nvm install Install the version specified in the nearest .nvmrc file"
|
||||||
@ -113,7 +113,7 @@ function nvm --description "Node version manager"
|
|||||||
echo -e "Fetching \x1b[4m$url\x1b[24m\x1b[7m"
|
echo -e "Fetching \x1b[4m$url\x1b[24m\x1b[7m"
|
||||||
end
|
end
|
||||||
|
|
||||||
if ! command curl $silent --progress-bar --location $url |
|
if ! command curl -q $silent --progress-bar --location $url |
|
||||||
command tar --extract --gzip --directory $nvm_data/$ver 2>/dev/null
|
command tar --extract --gzip --directory $nvm_data/$ver 2>/dev/null
|
||||||
command rm -rf $nvm_data/$ver
|
command rm -rf $nvm_data/$ver
|
||||||
echo -e "\033[F\33[2K\x1b[0mnvm: Invalid mirror or host unavailable: \"$url\"" >&2
|
echo -e "\033[F\33[2K\x1b[0mnvm: Invalid mirror or host unavailable: \"$url\"" >&2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user