Quellcode durchsuchen

07env-install-centos.sh

lizw vor 2 Jahren
Ursprung
Commit
7b37e78ca3
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      00base/07env-install-centos.sh

+ 1 - 1
00base/07env-install-centos.sh

@@ -282,7 +282,7 @@ function init:git() {
   log::info "[git]" "git环境安装成功!"
   if [[ "${ADD_USER_TAG:-}" == "1" ]]; then
     command::exec "${host}" "
-      echo '${ADD_USER_PASSWORD}' | su - ${ADD_USER_NAME} -c 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配置成功!"