From cff631d0c5867b05813399fae880e0a3e7049999 Mon Sep 17 00:00:00 2001 From: Codex Date: Wed, 29 Apr 2026 14:23:11 +0800 Subject: [PATCH] Handle empty release env root override --- scripts/deploy-rust-remote.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deploy-rust-remote.sh b/scripts/deploy-rust-remote.sh index f68fc78a..30be0696 100644 --- a/scripts/deploy-rust-remote.sh +++ b/scripts/deploy-rust-remote.sh @@ -486,7 +486,7 @@ WEB_SERVER touch "${TARGET_DIR}/.env" for env_file in "${TARGET_DIR}/.env" "${TARGET_DIR}/.env.local"; do if [[ -f "${env_file}" ]]; then - grep -v '^GENARRATIVE_SPACETIME_ROOT_DIR=' "${env_file}" >"${env_file}.tmp" + grep -v '^GENARRATIVE_SPACETIME_ROOT_DIR=' "${env_file}" >"${env_file}.tmp" || true mv "${env_file}.tmp" "${env_file}" printf '\nGENARRATIVE_SPACETIME_ROOT_DIR=__GENARRATIVE_RUNTIME_SPACETIME_ROOT_DIR__\n' >>"${env_file}" fi