install.sh中修正.env文件中的字符串双引号

This commit is contained in:
wandoubaba 2023-07-06 12:22:11 +08:00
parent 93266a0259
commit 4ffd8c710d

View File

@ -37,9 +37,9 @@ else
# 创建.env文件 # 创建.env文件
branch=$(git branch --show-current) branch=$(git branch --show-current)
git_url=$(git remote -v | grep fetch | awk '{print $2}') git_url=$(git remote -v | grep fetch | awk '{print $2}')
echo "WORD_DIR = $work_dir" >"$env_file" echo "WORD_DIR = \"$work_dir\"" >"$env_file"
echo "BRANCH = $branch" >>"$env_file" echo "BRANCH = \"$branch\"" >>"$env_file"
echo "GIT_URL = $git_url" >>"$env_file" echo "GIT_URL = \"$git_url\"" >>"$env_file"
echo "[$(date +"%Y-%m-%d %H:%M:%S")] .env文件创建成功" >>"$log_file" echo "[$(date +"%Y-%m-%d %H:%M:%S")] .env文件创建成功" >>"$log_file"
fi fi