diff --git a/NonSteamLaunchers.sh b/NonSteamLaunchers.sh index b179172..186e093 100755 --- a/NonSteamLaunchers.sh +++ b/NonSteamLaunchers.sh @@ -3032,8 +3032,8 @@ update_notes_in_file() { # Function to list game names from the shortcuts file list_game_names() { if [[ ! -f "$shortcuts_file" ]]; then - echo "The shortcuts file does not exist at $shortcuts_file." - exit 1 + echo "The shortcuts file does not exist at $shortcuts_file. Creating an empty file..." + touch "$shortcuts_file" # Create an empty file fi echo "Reading game names from $shortcuts_file..." @@ -3051,6 +3051,7 @@ list_game_names() { done < "$shortcuts_file" } + # Main process echo "Starting script..."