website fix

This commit is contained in:
Roy 2024-03-08 04:02:35 -08:00 committed by GitHub
parent 5e303251b2
commit ef173d4057
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -663,8 +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=$(printf ", %s" "${custom_websites[@]}") custom_websites_str=$(printf "%s, " "${custom_websites[@]}")
custom_websites_str=${custom_websites_str:2} # Remove the leading comma and space custom_websites_str=${custom_websites_str%, }
# 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"