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 snippet - clean up stereo pairs and sort by…enable / disable root user - OSXbash NULL DEVICE - redirecting output & errorsbash - awk with colored outputbash combine pdf or other image files into pdfbash: process each line as result of command using IFS=bash OSX iTerm2 - display inline images in terminalbash - wavecache.wfm removalBASH - faster navigation