Created
August 25, 2015 16:31
-
-
Save lo5an/8a56b7fc62b377cd1bd3 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 | |
1>&2 printf "\n $@ \n\n" | |
1>&2 read -p "Are you sure that you're not being dumb? (y/n)" CONFIRM | |
if [ "$CONFIRM" == "y" ] | |
then | |
/usr/bin/sudo "$@" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment