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:OSX Bash - commands I didn't know before (or saw…bash: for - looping over and processing files in…Apple Mail - control mail check intervalbash - awk with colored outputbash combine pdf or other image files into pdfsqlite3 access via bashBash Substring Matching within StringOS-X - file system check - fsck in Single User….DS_Store - BASH shell - Linux/OSX = Find & Remove Files