Skip to content

Instantly share code, notes, and snippets.

@darfux
Created March 1, 2018 13:29
Show Gist options
  • Save darfux/ffad25e705b359aede60edca62e9c99a to your computer and use it in GitHub Desktop.
Save darfux/ffad25e705b359aede60edca62e9c99a to your computer and use it in GitHub Desktop.

Revisions

  1. darfux created this gist Mar 1, 2018.
    7 changes: 7 additions & 0 deletions require_sudo_auth
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #!/bin/bash

    sudo echo "Required sudo auth"

    if [[ ! $? -eq 0 ]]; then
    exit
    fi