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:Thunderbird - control mail check intervalApple Mail - control mail check intervalbash - wavecache.wfm removalOS-X - file system check - fsck in Single User…bash - awk with colored outputbash - OSX Mac Processor CPU Detailsbash: for - looping to repeat commandsbash mkdir -p for recursive subdirectory creationbash - awk if then else snippet