From 4ffd8c710dddbb1970db544521b4479af64bb62a Mon Sep 17 00:00:00 2001 From: wandoubaba Date: Thu, 6 Jul 2023 12:22:11 +0800 Subject: [PATCH] =?UTF-8?q?install.sh=E4=B8=AD=E4=BF=AE=E6=AD=A3.env?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=AD=E7=9A=84=E5=AD=97=E7=AC=A6=E4=B8=B2?= =?UTF-8?q?=E5=8F=8C=E5=BC=95=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 8517cf4..488dfe1 100644 --- a/install.sh +++ b/install.sh @@ -37,9 +37,9 @@ else # 创建.env文件 branch=$(git branch --show-current) git_url=$(git remote -v | grep fetch | awk '{print $2}') - echo "WORD_DIR = $work_dir" >"$env_file" - echo "BRANCH = $branch" >>"$env_file" - echo "GIT_URL = $git_url" >>"$env_file" + echo "WORD_DIR = \"$work_dir\"" >"$env_file" + echo "BRANCH = \"$branch\"" >>"$env_file" + echo "GIT_URL = \"$git_url\"" >>"$env_file" echo "[$(date +"%Y-%m-%d %H:%M:%S")] .env文件创建成功" >>"$log_file" fi