From f0e0cf08f55eeff281662a6d32879347ea88dfbd Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 27 Oct 2022 17:02:25 -0400 Subject: [PATCH] Finally realized what I was doing wrong. Su -c requires quotes around the command part. --- linux-game-manager.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/linux-game-manager.sh b/linux-game-manager.sh index 8f86370..1b9a846 100755 --- a/linux-game-manager.sh +++ b/linux-game-manager.sh @@ -518,8 +518,7 @@ case "${game}" in if command -v yay &> /dev/null ; then yay -Sy --noconfirm --sudoloop freedoom gzdoom elif command -v slapt-get &> /dev/null ; then - su -c slapt-get -i gzdoom - su -c slapt-get -i freedoom + su -c 'slapt-get -i freedoom gzdoom' else dialog --backtitle "Linux Game Manager" --msgbox "No supported package managers found. Please install the freedoom and gzdoom packages manually." -1 -1 exit 0