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:BitBar - OSX custom menu bar - running #!/bin/bashbash: for - looping to repeat commandsbash: for - looping over and processing files in…Bash Substring Matching within StringOSX review login items via bash+applescriptbash - awk with colored outputbash combine pdf or other image files into pdfbash: process each line as result of command using IFS=bash OSX: hours on a computer, list reboots