Last active
June 9, 2022 02:21
-
-
Save chaos-zhu/5c7e845d7b6363a5986d89cb95682182 to your computer and use it in GitHub Desktop.
Revisions
-
chaos-zhu revised this gist
Jun 9, 2022 . 1 changed file with 11 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,6 +14,13 @@ cdroot () { cdroot rm install-nodejs.sh if [ $? == "0" ] ; then echo '删除旧脚本' exit 1 fi wget -qO- https://ghproxy.com/https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash if [ $? != "0" ] ; then @@ -23,4 +30,7 @@ fi cdroot source /root/.nvm/nvm.sh echo "$(nvm -v)" -
chaos-zhu revised this gist
Jun 9, 2022 . 1 changed file with 0 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,13 +14,6 @@ cdroot () { cdroot wget -qO- https://ghproxy.com/https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash if [ $? != "0" ] ; then -
chaos-zhu revised this gist
Jun 9, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -30,4 +30,4 @@ fi cdroot source /root/nvm.sh -
chaos-zhu revised this gist
Jun 9, 2022 . 1 changed file with 5 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,9 +8,11 @@ fi # 编写中... echo '开始安装nvm' cdroot () { cd /root } cdroot rm install-nodejs.sh @@ -26,6 +28,6 @@ if [ $? != "0" ] ; then exit 1 fi cdroot source nvm.sh -
chaos-zhu revised this gist
Jun 9, 2022 . 1 changed file with 11 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,16 @@ fi # 编写中... echo '开始安装nvm' alias root="cd /root" root rm install-nodejs.sh if [ $? == "0" ] ; then echo '删除旧脚本' exit 1 fi wget -qO- https://ghproxy.com/https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash @@ -17,6 +26,6 @@ if [ $? != "0" ] ; then exit 1 fi root source nvm.sh -
chaos-zhu revised this gist
Jun 9, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,7 @@ echo '开始安装nvm' cd ~ wget -qO- https://ghproxy.com/https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash if [ $? != "0" ] ; then echo '下载nvm失败' -
chaos-zhu revised this gist
Jun 9, 2022 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,6 +7,9 @@ fi # 编写中... echo '开始安装nvm' cd ~ wget -qO- https://ghproxy.com/https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh123 | bash if [ $? != "0" ] ; then -
chaos-zhu revised this gist
Jun 9, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ fi echo '开始安装nvm' wget -qO- https://ghproxy.com/https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh123 | bash if [ $? != "0" ] ; then echo '下载nvm失败' exit 1 fi -
chaos-zhu created this gist
Jun 9, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ #!/bin/bash if [ "$(id -u)" != "0" ] ; then echo "***********************需root权限***********************" exit 1 fi # 编写中... echo '开始安装nvm' wget -qO- https://ghproxy.com/https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh123 | bash if [ "$($?)" != "0" ] ; then echo '下载nvm失败' exit 1 fi cd ~/.nvm || exit source nvm.sh