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 - pass arguments with flags to scriptbash - wavecache.wfm removalOSX Bash - commands I didn't know before (or saw…bash - df to get space usage by volumebash - awk with colored outputenable / disable root user - OSXBASH snippet - clean up stereo pairs and sort by…bash combine pdf or other image files into pdf