Created
August 12, 2022 00:58
-
-
Save yxqsnz/adf8aad9bfaa8b1784b41dba00a4543f 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
#/usr/bin/env bash | |
function cleanup() { | |
tput cnorm | |
} | |
trap cleanup EXIT | |
printf "\e[35m שּ | \e[32mAyo!\e[0m\n" | |
tput civis | |
printf "\e[35m | Please wait [ ]\e[0m\r" | |
URL=$(curl -s https://purrbot.site/api/img/sfw/hug/gif | jq -r .link) | |
printf "\e[35m | Please wait [= ]\e[0m\r" | |
TARGET=$(mktemp --suffix .hug.gif) | |
curl -s ${URL} > $TARGET | |
printf "\e[35m | Please wait [== ]\e[0m\r" | |
xdg-open $TARGET >/dev/null 2>/dev/null | |
printf "\e[35m | Please wait [===]\e[0m\r" | |
echo -e "\e[32m \e[35m| Don't worry. It's safe now. :>\e[0m" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment