From e059d3d25062c56900f5b19741039a3d2eb22292 Mon Sep 17 00:00:00 2001 From: lizw <1183409807@qq.com> Date: Tue, 1 Nov 2022 10:33:37 +0800 Subject: [PATCH] 08jenkins-agent-install-centos.sh --- 00base/08jenkins-agent-install-centos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/00base/08jenkins-agent-install-centos.sh b/00base/08jenkins-agent-install-centos.sh index 8790067..1490ee3 100644 --- a/00base/08jenkins-agent-install-centos.sh +++ b/00base/08jenkins-agent-install-centos.sh @@ -220,7 +220,7 @@ function init:mkdir() { local host="127.0.0.1" command::exec "${host}" " sudo mkdir -p ${BASE_DIR} - sudo chown -R \\\$(id -u):\\\$(id -g) ${BASE_DIR} + sudo chown -R \$(id -u):\$(id -g) ${BASE_DIR} " check::exit_code "$?" "git" "$host 创建目录:${BASE_DIR}" "exit" log::info "[mkdir]" "创建目录成功!"