diff --git a/install.sh b/install.sh index 9fc9cbc..9f1722d 100644 --- a/install.sh +++ b/install.sh @@ -4,7 +4,7 @@ # Authors : ccmywish # aifuxi # Created on : <2021-01-06> -# Last modified : <2023-05-01> +# Last modified : <2023-05-09> # # install: # @@ -13,7 +13,10 @@ # ---------- # Changelog: # +# Note that, the '@user' represents the user id of Gitee public service. +# # ~> v0.1.0 +# <2023-05-09> Check Git first by @ccmywish, idea by @zhdong_admin # <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 @@ -22,6 +25,11 @@ # Exit on error set -e +if ! [ $(command -v "git") ]; then + echo "=> 请您首先安装Git" + exit 127 +fi + export NVM_DIR="$HOME/.nvm" && ( echo "=> Git clone nvm" git clone https://gitee.com/mirrors_nvm-sh/nvm "$NVM_DIR"