Commit | Line | Data |
---|---|---|
0f04b361 KM |
1 | #!/bin/sh - |
2 | # | |
b2e7427f | 3 | # Copyright (c) 1985 The Regents of the University of California. |
78f22ba9 | 4 | # All rights reserved. |
0f04b361 | 5 | # |
b2e7427f | 6 | # %sccs.include.redist.sh% |
78f22ba9 | 7 | # |
b2e7427f | 8 | # @(#)wargames.sh 5.4 (Berkeley) %G% |
0f04b361 KM |
9 | # |
10 | echo -n "Would you like to play a game? " | |
11 | read x | |
12 | ||
7ab2b09e KB |
13 | if [ -f /usr/games/$x ] ; then |
14 | tput cl | |
0f04b361 | 15 | exec /usr/games/$x |
7ab2b09e KB |
16 | else |
17 | echo "Funny, the only way to win is not to play at all." | |
18 | fi | |
0f04b361 | 19 | exit 0 |