Last active
June 5, 2019 09:54
-
-
Save Edo78/52f668ff05ddd9e64577da76c6e49ef6 to your computer and use it in GitHub Desktop.
Un ridicolo script per alcolizzati
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/zsh | |
(( tasso_alcolemico = 0.0 )) | |
while true | |
do | |
echo beer | |
echo burp | |
(( tasso_alcolemico += 0.25 )) | |
if [[ $tasso_alcolemico -gt 4.0 ]] | |
then | |
echo "Se mi scusate vado un attimo in coma etilico" | |
exit 1 | |
elif [[ $tasso_alcolemico -gt 1.2 ]] | |
then | |
echo "Ne prendo SOLO un'altra" | |
elif [[ $tasso_alcolemico -gt 0.5 ]] | |
then | |
echo "Tanto non guido, posso prenderne un'altra" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment