We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12cb0e3 commit 8d6080aCopy full SHA for 8d6080a
2 files changed
daemon/setup.sh
@@ -44,6 +44,11 @@ Red_Error() {
44
}
45
46
Install_Node() {
47
+ if [[ -f "$node_install_path"/bin/node ]] && [[ "$("$node_install_path"/bin/node -v)" == "$node" ]]; then
48
+ echo_green "Node.js version is up-to-date, skipping installation."
49
+ return
50
+ fi
51
+
52
echo_cyan_n "[+] Install Node.JS environment...\n"
53
54
rm -irf "$node_install_path"
daemon/setup_cn.sh
echo_cyan_n "[+] 安装 Node.JS...\n"
0 commit comments