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:OSX review login items via bash+applescriptbash OSX iTerm2 - display inline images in terminalbash: process each line as result of command using IFS=BASH snippet - clean up stereo pairs and sort by…bash OSX: hours on a computer, list rebootsbash - du to get space used by directoryOS-X - file system check - fsck in Single User…bash: for - looping to repeat commandsbash - df to get space usage by volume