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:Apple Mail - control mail check intervalenable / disable root user - OSXbash - pass arguments with flags to scriptBASH - faster navigationBASH y/n select - on user inputbash: for - looping to repeat commandsbash - wavecache.wfm removalBitBar - OSX custom menu bar - running #!/bin/bashbash OSX iTerm2 - display inline images in terminal