From 61d58790b113180f66825c609672c94f8274c0ab Mon Sep 17 00:00:00 2001 From: S Date: Sun, 1 Mar 2026 08:58:49 -0500 Subject: [PATCH] fix: update sed escape pattern to handle pipe delimiter in save_env_var function --- lib/common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/common.sh b/lib/common.sh index 793fbf0..f849132 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -96,9 +96,9 @@ save_env_var() { return 1 fi - # Escape special characters in value for sed + # Escape special characters in value for sed (delimiter is |) local escaped_value - escaped_value=$(printf '%s' "$value" | sed 's/[&/\]/\\&/g') + escaped_value=$(printf '%s' "$value" | sed 's/[&/\|]/\\&/g') if grep -q "^${key}=" "$env_file"; then # Replace existing line — match KEY= followed by anything (value + optional comment)