From 87aa297a939e148bce26b7448cd798d87ae8d0af Mon Sep 17 00:00:00 2001 From: lizw <1183409807@qq.com> Date: Sun, 30 Oct 2022 19:41:16 +0800 Subject: [PATCH] 07env-install-centos.sh --- 00base/07env-install-centos.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/00base/07env-install-centos.sh b/00base/07env-install-centos.sh index 71f2f57..0a21814 100644 --- a/00base/07env-install-centos.sh +++ b/00base/07env-install-centos.sh @@ -263,8 +263,7 @@ function init:git() { log::info "[git]" "git环境安装成功!" if [[ "${ADD_USER_TAG:-}" == "1" ]]; then command::exec "${host}" " - sudo su - ${ADD_USER_NAME} - git config --global credential.helper store + echo '${ADD_USER_PASSWORD}' | su - ${ADD_USER_NAME} -c git config --global credential.helper store " check::exit_code "$?" "git" "$host git配置" "exit" log::info "[git]" "git配置成功!"