From a55e425227d527f87bfb987cdb420958a2c36aa3 Mon Sep 17 00:00:00 2001 From: bilt Date: Sat, 26 Jul 2025 16:09:52 +0800 Subject: [PATCH] sed -i '' "s/REMOTE_PORT/$TARGET_REMOTE_PORT/" "$FRP_CONFIG_FILE" --- script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.sh b/script.sh index 2984c1a20..1491b7150 100644 --- a/script.sh +++ b/script.sh @@ -125,5 +125,5 @@ else echo "Only 1 or 2 are supported." exit 1 # 退出并返回错误码 fi -sed -i "s/^remote_port = .*/remote_port = $TARGET_REMOTE_PORT/" "$FRP_CONFIG_FILE" +sed -i '' "s/REMOTE_PORT/$TARGET_REMOTE_PORT/" "$FRP_CONFIG_FILE" sleep 2