Created
February 28, 2014 20:33
-
-
Save kageurufu/9279272 to your computer and use it in GitHub Desktop.
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/bash | |
PERCENTAGE=0 | |
( | |
while [ $PERCENTAGE -le 100 ]; do | |
echo "$PERCENTAGE" | |
case $PERCENTAGE in | |
[1-9]) | |
;; | |
100) | |
echo "# Error ID10T: No fucks found" | |
;; | |
[12]*) | |
echo "# Searching \$PATH for fucks" | |
;; | |
[34]*) | |
echo "# Querying REST endpoints" | |
;; | |
[56]*) | |
echo "# Googling for fuck providers" | |
;; | |
[78]*) | |
echo "# Attempting to find a fuck algorithm" | |
;; | |
9*) | |
echo "# cat /dev/fucks" | |
;; | |
*) | |
;; | |
esac | |
sleep .1 | |
PERCENTAGE=$(( $PERCENTAGE + 1 )) | |
done | |
) | | |
zenity --progress --text="Attempting to give a fuck" --percentage=0 --title="Giving a fuck" --width="400" --auto-close | |
zenity --error --text="Error ID10T: No fucks found" --width="400" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment