another fix for websites

This commit is contained in:
Roy 2024-03-07 10:33:21 -08:00 committed by GitHub
parent e574fbc59f
commit 5e303251b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -663,7 +663,8 @@ else
done done
# Join the custom_websites array into a string with commas and spaces # Join the custom_websites array into a string with commas and spaces
custom_websites_str=$(IFS=', '; echo "${custom_websites[*]}") custom_websites_str=$(printf ", %s" "${custom_websites[@]}")
custom_websites_str=${custom_websites_str:2} # Remove the leading comma and space
# Split the custom_websites_str variable back into an array using ',' as the delimiter # Split the custom_websites_str variable back into an array using ',' as the delimiter
IFS=', ' read -ra custom_websites <<< "$custom_websites_str" IFS=', ' read -ra custom_websites <<< "$custom_websites_str"