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配置成功!"