|
@@ -263,8 +263,7 @@ function init:git() {
|
|
log::info "[git]" "git环境安装成功!"
|
|
log::info "[git]" "git环境安装成功!"
|
|
if [[ "${ADD_USER_TAG:-}" == "1" ]]; then
|
|
if [[ "${ADD_USER_TAG:-}" == "1" ]]; then
|
|
command::exec "${host}" "
|
|
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"
|
|
check::exit_code "$?" "git" "$host git配置" "exit"
|
|
log::info "[git]" "git配置成功!"
|
|
log::info "[git]" "git配置成功!"
|