almost fixed, fixed hpttps url but still has missing space

This commit is contained in:
Roy 2024-03-08 05:18:54 -08:00 committed by GitHub
parent b4d26c4fad
commit e2fd9dec49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -651,17 +651,13 @@ else
# Initialize an array to store the selected launchers
selected_launchers=()
IFS=", "
for arg in "${args[@]}"; do
if [[ "$arg" =~ ^https?:// ]]; then
website=${arg#https://}
# Check if the arg is not an empty string before adding it to the custom_websites array
if [ -n "$website" ]; then
IFS=',' read -ra websites <<< "$website"
for site in "${websites[@]}"; do
custom_websites+=("$site")
done
custom_websites+=("$website")
fi
else
selected_launchers+=("$arg")