Update nexus.sh

This commit is contained in:
sdohuajia 2024-10-09 20:49:37 +08:00 committed by GitHub
parent 60cbf511f7
commit 3c65b5df2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,6 +65,9 @@ function show_id() {
# 启动节点的函数 # 启动节点的函数
function start_node() { function start_node() {
# 确保目录存在
mkdir -p /root/.nexus # 创建目录(如果不存在)
# 检查并安装 Git # 检查并安装 Git
if ! command -v git &> /dev/null; then if ! command -v git &> /dev/null; then
echo "Git 未安装。正在安装 Git..." echo "Git 未安装。正在安装 Git..."