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 snippet - clean up stereo pairs and sort by…bash NULL DEVICE - redirecting output & errorsOSX review login items via bash+applescriptenable / disable root user - OSXApple Mail - control mail check intervalOSX Bash - commands I didn't know before (or saw…bash OSX: hours on a computer, list rebootsBASH - faster navigation