autobuongiorno.sh 215 B

123456789101112131415
  1. #!/bin/sh
  2. # WTFPL!
  3. tmpfile="/tmp/buongiorno"
  4. pic=$(immaginibuongiorno)
  5. if [ "$pic" = "" ]
  6. then
  7. echo "notfound"
  8. pic=$(immaginibuongiorno --random)
  9. fi
  10. wget -O $tmpfile "$pic"
  11. toot -i="$tmpfile"
  12. rm $tmpfile