From ee1e84e1f275259bc1953d0923fc0759daefb955 Mon Sep 17 00:00:00 2001 From: Son Date: Mon, 12 Feb 2024 21:25:51 -0500 Subject: [PATCH] Fix newline literals --- scripts/generate-worldoption.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/generate-worldoption.sh b/scripts/generate-worldoption.sh index 14f4fae12..8d929d175 100644 --- a/scripts/generate-worldoption.sh +++ b/scripts/generate-worldoption.sh @@ -87,10 +87,7 @@ json_struct() { # Function to generate JSON config generate_json_config() { local json_config="{}" - local input="$1" - - # Replace commas with newline using parameter expansion - local config="${input//,/\\n}" + local config=${1//,/$'\n'} # Loop through each key-value pair while IFS='=' read -r key value; do