From d1979607318b4639c6c2cf716c09a504c5f9f68e Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 17 Mar 2022 18:12:18 -0400 Subject: [PATCH] Modified the launcher a bit to cut down on redundant code. --- linux-game-manager.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/linux-game-manager.sh b/linux-game-manager.sh index 2b82fa5..a6b2be4 100755 --- a/linux-game-manager.sh +++ b/linux-game-manager.sh @@ -247,23 +247,22 @@ game_launcher() { case "${game}" in "Aliens") open_url "https://files.jantrid.net/aliens/" - exit 0 ;; "QuentinC Play Room") open_url "https://qcsalon.net/" - exit 0 ;; "Trigaea") open_url "https://ryngm.itch.io/trigaea" - exit 0 ;; "Donate") open_url "https://ko-fi.com/stormux" - exit 0 + ;; + *) + pushd "${game%/*}" + exec ${game%|} ;; esac - pushd "${game%/*}" - exec ${game%|} + exit 0 }