slackbuilds_ponce/games/wolfmame/wolfmame
David Ferrone 2b4b99f7f5
games/wolfmame: Added (A secure fork of MAME)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2022-05-07 13:59:33 +07:00

22 lines
355 B
Bash

#!/bin/sh
# Slackware wrapper for the wolfmame mame executable.
runme(){
cd /opt/wolfmame
./mame "$@"
}
if [ $UID == 0 ]; then
read -p "You are currently running as root...\
Are you sure you want to proceed? (N/y): " resp
case "$resp" in
y|yes)
runme
;;
*)
echo Exiting
exit 0
;;
esac
else
runme $@
fi