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 OSX iTerm2 - display inline images in terminalenable / disable root user - OSXOSX Bash - commands I didn't know before (or saw…bash - wavecache.wfm removalThunderbird - control mail check intervalBASH y/n select - on user inputbash combine pdf or other image files into pdfBASH snippet - clean up stereo pairs and sort by…bash - awk if then else snippet