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 to repeat commandsOSX review login items via bash+applescriptbash mkdir -p for recursive subdirectory creationbash OSX iTerm2 - display inline images in terminalbash: for - looping over and processing files in…bash - du to get space used by directorybash - wavecache.wfm removalApple Mail - control mail check intervalBASH y/n select - on user input