Created
March 1, 2018 13:29
-
-
Save darfux/ffad25e705b359aede60edca62e9c99a to your computer and use it in GitHub Desktop.
Require sudo before run
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 | |
| sudo echo "Required sudo auth" | |
| if [[ ! $? -eq 0 ]]; then | |
| exit | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment