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]" "创建目录成功!"