Finally realized what I was doing wrong. Su -c requires quotes around the command part.
This commit is contained in:
parent
78442ebcb7
commit
f0e0cf08f5
@ -518,8 +518,7 @@ case "${game}" in
|
|||||||
if command -v yay &> /dev/null ; then
|
if command -v yay &> /dev/null ; then
|
||||||
yay -Sy --noconfirm --sudoloop freedoom gzdoom
|
yay -Sy --noconfirm --sudoloop freedoom gzdoom
|
||||||
elif command -v slapt-get &> /dev/null ; then
|
elif command -v slapt-get &> /dev/null ; then
|
||||||
su -c slapt-get -i gzdoom
|
su -c 'slapt-get -i freedoom gzdoom'
|
||||||
su -c slapt-get -i freedoom
|
|
||||||
else
|
else
|
||||||
dialog --backtitle "Linux Game Manager" --msgbox "No supported package managers found. Please install the freedoom and gzdoom packages manually." -1 -1
|
dialog --backtitle "Linux Game Manager" --msgbox "No supported package managers found. Please install the freedoom and gzdoom packages manually." -1 -1
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user