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 Mac Processor CPU Detailsbash - awk with colored outputsqlite3 access via bashbash mkdir -p for recursive subdirectory creationbash: for - looping over and processing files in…OSX review login items via bash+applescriptOS-X - file system check - fsck in Single User…bash - awk if then else snippetThunderbird - control mail check interval