diff --git a/NonSteamLaunchers.sh b/NonSteamLaunchers.sh index 614389f..315f21a 100755 --- a/NonSteamLaunchers.sh +++ b/NonSteamLaunchers.sh @@ -663,8 +663,8 @@ else done # Join the custom_websites array into a string with commas and spaces - custom_websites_str=$(printf ", %s" "${custom_websites[@]}") - custom_websites_str=${custom_websites_str:2} # Remove the leading comma and space + custom_websites_str=$(printf "%s, " "${custom_websites[@]}") + custom_websites_str=${custom_websites_str%, } # Split the custom_websites_str variable back into an array using ',' as the delimiter IFS=', ' read -ra custom_websites <<< "$custom_websites_str"