From 027f4404fb50654528a905413fdcc728cbe54f11 Mon Sep 17 00:00:00 2001 From: liyong Date: Tue, 8 Feb 2022 14:19:48 +0800 Subject: [PATCH] fix details --- cp_scripts_alchemy.sh | 2 +- cp_scripts_moicen.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cp_scripts_alchemy.sh b/cp_scripts_alchemy.sh index b8853b8..f4199b7 100755 --- a/cp_scripts_alchemy.sh +++ b/cp_scripts_alchemy.sh @@ -28,7 +28,7 @@ cp scripts/*.lua $openresty_lua_scripts_dir # -- Replace scripts path in file replaced_scripts_path=$(echo $openresty_lua_scripts_dir | sed 's_/_\\/_g') echo "$replaced_scripts_path" -sed -i -e "s/SCRIPT_PATH/$replaced_scripts_path/" \ +sed -i -e "s//$replaced_scripts_path/" \ "$openresty_lua_scripts_dir"/combine.lua \ "$openresty_lua_scripts_dir"/convert_audio.lua \ "$openresty_lua_scripts_dir"/test_upyun_upload.lua \ diff --git a/cp_scripts_moicen.sh b/cp_scripts_moicen.sh index 7ba6376..694c930 100755 --- a/cp_scripts_moicen.sh +++ b/cp_scripts_moicen.sh @@ -28,7 +28,7 @@ cp scripts/*.lua $openresty_lua_scripts_dir # -- Replace scripts path in file replaced_scripts_path=$(echo $openresty_lua_scripts_dir | sed 's_/_\\/_g') echo "$replaced_scripts_path" -sed -i -e "s/SCRIPT_PATH/$replaced_scripts_path/" \ +sed -i -e "s//$replaced_scripts_path/" \ "$openresty_lua_scripts_dir"/combine.lua \ "$openresty_lua_scripts_dir"/convert_audio.lua \ "$openresty_lua_scripts_dir"/test_upyun_upload.lua \