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 NULL DEVICE - redirecting output & errorsbash combine pdf or other image files into pdfbash: for - looping to repeat commandsOSX review login items via bash+applescriptbash - pass arguments with flags to scriptbash - df to get space usage by volumeBitBar - OSX custom menu bar - running #!/bin/bashBash Substring Matching within StringThunderbird - control mail check interval