Update sed command delimiter in patch.sh

Fix sed command to use pipe instead of slash for delimiter.
This commit is contained in:
3D_DLW
2025-09-27 14:51:21 +08:00
committed by Del
parent 31e997a192
commit 5e70f73c1e
+1 -1
View File
@@ -22,7 +22,7 @@ apply_patches() {
# 创建临时文件用于占位符替换
local temp_patch=$(mktemp)
# 将补丁文件中的 {SSH_PASSWORD} 替换为 PASSWORD
sed "s/{SSH_PASSWORD}/$PASSWORD/g" "$file" > "$temp_patch"
sed "s|{SSH_PASSWORD}|$PASSWORD|g" "$file" > "$temp_patch"
# 应用替换后的补丁
patch -p1 < "$temp_patch"
# 清理临时文件