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 - du to get space used by directorybash OSX iTerm2 - display inline images in terminalbash - wavecache.wfm removalbash mkdir -p for recursive subdirectory creationBASH - faster navigation.DS_Store - BASH shell - Linux/OSX = Find & Remove FilesOSX review login items via bash+applescriptApple Mail - control mail check intervalBASH y/n select - on user input