DS bash – check that script is being executed by root ~~ August 24, 2019 12345if [ $EUID -ne 0 ] then /bin/echo $'\nThis script must be run as the root user!\n' exit fi Related Posts:OS-X - file system check - fsck in Single User…bash - df to get space usage by volumeOSX Bash - commands I didn't know before (or saw…OSX review login items via bash+applescriptBASH - faster navigationBASH snippet - clean up stereo pairs and sort by…Bash Substring Matching within Stringsqlite3 access via bashbash - awk with colored output