Skip to content

Commit

Permalink
attempted fix for command line args(websites)
Browse files Browse the repository at this point in the history
  • Loading branch information
moraroy authored Mar 7, 2024
1 parent 587991e commit 73480fb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions NonSteamLaunchers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,15 @@ else
fi
done

# If command line arguments were provided, join the custom websites with commas
if [ ${#args[@]} -gt 0 ]; then
custom_websites_str=$(IFS=','; echo "${custom_websites[*]}")
else
custom_websites_str="${custom_websites[@]}"
fi

echo "Custom websites: $custom_websites_str"

# TODO: error handling for unbound variable $selected_launchers_str on line 564
# Convert the selected_launchers array to a string by joining its elements with a `|` delimiter.
selected_launchers_str=$(IFS="|"; echo "${selected_launchers[*]}")
Expand Down

0 comments on commit 73480fb

Please sign in to comment.