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: for - looping over and processing files in…Thunderbird - control mail check intervalbash - using functionsenable / disable root user - OSXbash OSX iTerm2 - display inline images in terminalbash mkdir -p for recursive subdirectory creationbash - OSX Mac Processor CPU DetailsBASH snippet - clean up stereo pairs and sort by…OSX Bash - commands I didn't know before (or saw…