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:bash - du to get space used by directoryOSX review login items via bash+applescriptBASH y/n select - on user inputbash - awk with colored outputApple Mail - control mail check intervalbash OSX: hours on a computer, list rebootsOS-X - file system check - fsck in Single User…BASH snippet - clean up stereo pairs and sort by…bash - awk if then else snippet