Skip to content

Commit

Permalink
Fix newline literals
Browse files Browse the repository at this point in the history
  • Loading branch information
sonroyaalmerol authored Feb 13, 2024
1 parent 01ee29c commit ee1e84e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/generate-worldoption.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee1e84e

Please sign in to comment.