Avoid sudo in CI

This commit is contained in:
Aoran Zeng 2023-05-09 13:24:19 +08:00
parent 78f51012be
commit 0dc10bbf9e

View File

@ -13,10 +13,10 @@
# ----------
# Changelog:
#
# Note that, the '@user' represents the user id of Gitee public service.
# Note that, the '@user' represents the user id of Gitee
#
# ~> v0.1.0
# <2023-05-09> Check Git first by @ccmywish, idea by @zhdong_admin
# <2023-05-09> Check Git first and add CI on Gitee by @ccmywish
# <2023-05-01> Update nvm repo source by @ccmywish
# <2022-11-14> Update Node.JS mirror source by @aifuxi
# <2021-01-06> Create file by @ccmywish
@ -55,7 +55,10 @@ echo "export NVM_NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/node" >> ~/.zsh
echo "=> 安装nvm-update,升级更新请使用该命令"
curl -fsSL https://gitee.com/RubyKids/nvm-cn/raw/main/nvm-update.sh -o nvm-update.sh
chmod +x ./nvm-update.sh
sudo mv ./nvm-update.sh /usr/local/bin/nvm-update
if ! [ -v NVM_CN-IN-CI-TEST ];then
sudo mv ./nvm-update.sh /usr/local/bin/nvm-update
fi
echo "=> 安装完成!"
echo "=> 最后请您重启终端"