diff options
Diffstat (limited to 'source/y/bsd-games/bsd-games-login-fortune.sh')
-rw-r--r-- | source/y/bsd-games/bsd-games-login-fortune.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/y/bsd-games/bsd-games-login-fortune.sh b/source/y/bsd-games/bsd-games-login-fortune.sh index 598929fe..cb0f05b0 100644 --- a/source/y/bsd-games/bsd-games-login-fortune.sh +++ b/source/y/bsd-games/bsd-games-login-fortune.sh @@ -1,7 +1,11 @@ #!/bin/sh # Print a fortune cookie for interactive shells: -if [[ $- = *i* ]]; then + +case $- in +*i* ) # We're interactive echo fortune fortunes fortunes2 linuxcookie echo -fi + ;; +esac + |