mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-11-20 08:09:18 +01:00
almost fixed, fixed hpttps url but still has missing space
This commit is contained in:
parent
b4d26c4fad
commit
e2fd9dec49
@ -651,17 +651,13 @@ else
|
|||||||
# Initialize an array to store the selected launchers
|
# Initialize an array to store the selected launchers
|
||||||
selected_launchers=()
|
selected_launchers=()
|
||||||
|
|
||||||
IFS=", "
|
|
||||||
for arg in "${args[@]}"; do
|
for arg in "${args[@]}"; do
|
||||||
if [[ "$arg" =~ ^https?:// ]]; then
|
if [[ "$arg" =~ ^https?:// ]]; then
|
||||||
website=${arg#https://}
|
website=${arg#https://}
|
||||||
|
|
||||||
# Check if the arg is not an empty string before adding it to the custom_websites array
|
# Check if the arg is not an empty string before adding it to the custom_websites array
|
||||||
if [ -n "$website" ]; then
|
if [ -n "$website" ]; then
|
||||||
IFS=',' read -ra websites <<< "$website"
|
custom_websites+=("$website")
|
||||||
for site in "${websites[@]}"; do
|
|
||||||
custom_websites+=("$site")
|
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
selected_launchers+=("$arg")
|
selected_launchers+=("$arg")
|
||||||
|
Loading…
Reference in New Issue
Block a user