mirror of
https://gitee.com/RubyMetric/nvm-cn.git
synced 2025-12-25 20:02:45 +00:00
add nvm-update.sh shebang
This commit is contained in:
parent
9a11b27282
commit
37a6d88517
|
|
@ -1,7 +1,19 @@
|
|||
#!/usr/bin/env bash
|
||||
# ---------------------------------------------------------------
|
||||
# File : nvm-update.sh
|
||||
# Authors : ccmywish <ccmywish@qq.com>
|
||||
# Created on : <2021-01-06>
|
||||
# Last modified : <2022-11-14>
|
||||
#
|
||||
# nvm-update:
|
||||
#
|
||||
# Update your nvm and Node.js versions
|
||||
# ---------------------------------------------------------------
|
||||
|
||||
(
|
||||
cd "$NVM_DIR"
|
||||
git fetch --tags origin
|
||||
git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)`
|
||||
) && \. "$NVM_DIR/nvm.sh"
|
||||
|
||||
echo "=> 更新完成"
|
||||
echo "=> nvm更新完成"
|
||||
Loading…
Reference in New Issue