Created
July 14, 2017 05:46
-
-
Save dorukgezici/d02ea4866b180db663b3bc3571fbbcfc to your computer and use it in GitHub Desktop.
MacSudo, gksudo equivalent for macOS using AppleScript in bash.
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/sh | |
# MacSudo, gksudo equivalent for macOS using AppleScript in bash. | |
osascript -e 'do shell script "'"$*"'" with administrator privileges' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment