mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2025-01-20 13:51:10 +01:00
Add files via upload
This commit is contained in:
parent
41e2097fe4
commit
6264667aff
@ -558,12 +558,7 @@ if [ ${#args[@]} -eq 0 ]; then
|
|||||||
# The user did not click the 'Cancel' button or select one of the extra buttons, so prompt for custom websites
|
# The user did not click the 'Cancel' button or select one of the extra buttons, so prompt for custom websites
|
||||||
custom_websites_str=$(zenity --entry --title="Shortcut Creator" --text="Enter custom websites that you want shortcuts for, separated by commas. Leave blank and press ok if you dont want any. E.g. myspace.com, limewire.com, my.screenname.aol.com")
|
custom_websites_str=$(zenity --entry --title="Shortcut Creator" --text="Enter custom websites that you want shortcuts for, separated by commas. Leave blank and press ok if you dont want any. E.g. myspace.com, limewire.com, my.screenname.aol.com")
|
||||||
|
|
||||||
# Check if the user clicked the 'Cancel' button or entered an empty string
|
|
||||||
if [ $? -eq 1 ] || [ -z "$custom_websites_str" ]; then
|
|
||||||
# The user clicked the 'Cancel' button or entered an empty string, so exit the script
|
|
||||||
echo "The cancel button was clicked or no custom websites were entered"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Split the custom_websites_str variable into an array using ',' as the delimiter
|
# Split the custom_websites_str variable into an array using ',' as the delimiter
|
||||||
IFS=',' read -ra custom_websites <<< "$custom_websites_str"
|
IFS=',' read -ra custom_websites <<< "$custom_websites_str"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user