Last active
April 11, 2024 12:34
-
-
Save Stagyrite/cd75558f77c5293fa24cdfa3aa063581 to your computer and use it in GitHub Desktop.
Would you like to play a game?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh - | |
echo -n "SHALL WE PLAY A GAME? " | |
read x a | |
x=`/usr/bin/basename $x` | |
if [ -f /usr/games/$x ] ; then | |
# Love to. How about $x? | |
tput clear | |
exec /usr/games/$x $a | |
else | |
echo "GREETINGS $USER" | |
echo "" | |
echo "HELLO" | |
echo "" | |
echo "A STRANGE GAME." | |
echo "THE ONLY WINNING MOVE IS NOT TO PLAY." | |
fi | |
exit 0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
./wargames.sh