-
-
Save anonymous/b295a0a8b99a5ea258b3fd3c8c31927d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
paste_command="/usr/bin/gist-paste $1" | |
#paste_command="/usr/bin/gist-paste -p --login $1" | |
#paste_command="/usr/bin/gist-paste --description=$2 $1" | |
#paste_command="/usr/bin/pastebinit" | |
black="\e[00;30m" | |
red="\e[00;31m" | |
green="\e[00;32m" | |
yellow="\e[00;33m" | |
blue="\e[00;34m" | |
magenta="\e[00;35m" | |
cyan="\e[00;36m" | |
white="\e[00;37m" | |
gray="\e[00;38m" | |
normal="\e[00m" | |
printf "\n" | |
printf "${yellow}This command posts the contents of this file ${red}publicly to the Internet.${normal}\n" | |
printf "${yellow}If you're sure, type ${green}yes${normal}: " | |
read verify | |
case $verify in | |
yes|Yes) | |
printf "\n" | |
$paste_command | |
;; | |
**) | |
exit 0 | |
;; | |
esac | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment