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 - wavecache.wfm removalbash - pass arguments with flags to scriptbash: for - looping to repeat commandsbash OSX: hours on a computer, list rebootsbash - df to get space usage by volumeThunderbird - control mail check intervalbash - awk if then else snippetOSX review login items via bash+applescriptOSX system volume (sound) GET / SET via Terminal / bash