attempted fix for command line args(websites)

This commit is contained in:
Roy 2024-03-07 09:58:42 -08:00 committed by GitHub
parent 587991e96e
commit 73480fb8eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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[*]}")