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:sqlite3 access via bashbash - pass arguments with flags to scriptbash OSX iTerm2 - display inline images in terminalOSX review login items via bash+applescriptBash Substring Matching within Stringenable / disable root user - OSXBASH snippet - clean up stereo pairs and sort by…Apple Mail - control mail check intervalbash: process each line as result of command using IFS=