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: hours on a computer, list rebootsbash - using functionsbash NULL DEVICE - redirecting output & errorsbash: for - looping over and processing files in…bash - wavecache.wfm removalbash - awk with colored outputenable / disable root user - OSXbash mkdir -p for recursive subdirectory creationBASH snippet - clean up stereo pairs and sort by…