From 3c65b5df2b569bab839c5105be8500bb65b47bd8 Mon Sep 17 00:00:00 2001 From: sdohuajia <63113882+sdohuajia@users.noreply.github.com> Date: Wed, 9 Oct 2024 20:49:37 +0800 Subject: [PATCH] Update nexus.sh --- nexus.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nexus.sh b/nexus.sh index a7e7317..dc58625 100644 --- a/nexus.sh +++ b/nexus.sh @@ -65,6 +65,9 @@ function show_id() { # 启动节点的函数 function start_node() { + # 确保目录存在 + mkdir -p /root/.nexus # 创建目录(如果不存在) + # 检查并安装 Git if ! command -v git &> /dev/null; then echo "Git 未安装。正在安装 Git..."