File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ site_password=$SITE_PASSWORD
16
16
openai_api_model=$OPENAI_API_MODEL
17
17
18
18
for file in $( find ./dist -type f -name " *.mjs" ) ; do
19
- sed " s/ ({}).OPENAI_API_KEY/ \" $openai_api_key \" / g;
20
- s/ ({}).HTTPS_PROXY/ \" $https_proxy \" / g;
21
- s/ ({}).OPENAI_API_BASE_URL/ \" $openai_api_base_url \" / g;
22
- s/ ({}).HEAD_SCRIPTS/ \" $head_scripts \" / g;
23
- s/ ({}).PUBLIC_SECRET_KEY/ \" $public_secret_key \" / g;
24
- s/ ({}).OPENAI_API_MODEL/ \" $openai_api_model \" / g;
25
- s/ ({}).SITE_PASSWORD/ \" $site_password \" / g" $file > tmp
19
+ sed " s| ({}).OPENAI_API_KEY| \" $openai_api_key \" | g;
20
+ s| ({}).HTTPS_PROXY| \" $https_proxy \" | g;
21
+ s| ({}).OPENAI_API_BASE_URL| \" $openai_api_base_url \" | g;
22
+ s| ({}).HEAD_SCRIPTS| \" $head_scripts \" | g;
23
+ s| ({}).PUBLIC_SECRET_KEY| \" $public_secret_key \" | g;
24
+ s| ({}).OPENAI_API_MODEL| \" $openai_api_model \" | g;
25
+ s| ({}).SITE_PASSWORD| \" $site_password \" | g" $file > tmp
26
26
mv tmp $file
27
27
done
28
28
You can’t perform that action at this time.
0 commit comments