diff --git a/scripts/deploy-rust-remote.sh b/scripts/deploy-rust-remote.sh index 7e60da0a..c74e2d8c 100644 --- a/scripts/deploy-rust-remote.sh +++ b/scripts/deploy-rust-remote.sh @@ -67,7 +67,7 @@ normalize_env_file() { # 发布环境文件可能由 Windows 编辑器保存,启动脚本只接受无 BOM、无 CRLF 的 KEY=value 文本。 LC_ALL=C sed $'1s/^\xef\xbb\xbf//;s/\r$//' "${env_file}" >"${temp_file}" - mv "${temp_file}" "${env_file}" + cp "${temp_file}" "${env_file}" } copy_optional_file() {