From 937b20c39fa4804c3e8b0590d1116fb600722187 Mon Sep 17 00:00:00 2001 From: Foxbud Date: Thu, 9 Jun 2022 18:27:05 -0400 Subject: [PATCH] Fixed GUI crash when stopping already stopped modpack. --- bin/gui.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/gui.sh b/bin/gui.sh index e6c208e..fbd1481 100755 --- a/bin/gui.sh +++ b/bin/gui.sh @@ -774,7 +774,7 @@ _modpack_run_dialog() { --ok-label="Stop$_GO_SUF" \ --cancel-label="$_BACK" <&3 then - kill -s KILL $(pgrep "HyperLight") + _HLD_PID=($(pgrep "HyperLight")) && kill -s KILL ${_HLD_PID[-1]} fi echo "_modpack_menu_dialog" ;;