distro.sh 328 B

12345678910111213141516
  1. #!/usr/bin/env sh
  2. distro=$1
  3. if [ ! $distro ]; then
  4. echo "/usr/share/games/fortune/"
  5. elif [ $distro = "debian" ]; then
  6. echo "/usr/share/games/fortunes/"
  7. elif [ $distro = "fedora" ]; then
  8. echo "/usr/share/games/fortune/"
  9. elif [ $distro = "arch" ]; then
  10. echo "/usr/share/fortune"
  11. else
  12. echo "Unknown distribution" $distro
  13. fi