From 071ca80bae3abbd80e3db91533a4c71b4a50a132 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Tue, 18 Jan 2022 22:52:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=A0=E6=B3=95=E8=AF=BB=E5=8F=96=20/?= =?UTF-8?q?www/.env=EF=BC=9A=E6=B2=A1=E6=9C=89=E9=82=A3=E4=B8=AA=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=88=96=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd b/cmd index 31ea870f..2de75cf0 100755 --- a/cmd +++ b/cmd @@ -188,7 +188,7 @@ env_set() { echo "$key=$val" >> $cur_path/.env else if [[ `uname` == 'Linux' ]]; then - sed -i "/^${key}=/c\\${key}=${val}" /www/.env + sed -i "/^${key}=/c\\${key}=${val}" ${cur_path}/.env else docker run -it --rm -v ${cur_path}:/www alpine sh -c "sed -i "/^${key}=/c\\${key}=${val}" /www/.env" fi