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 - df to get space usage by volumeBitBar - OSX custom menu bar - running #!/bin/bashbash combine pdf or other image files into pdfOSX Bash - commands I didn't know before (or saw…BASH snippet - clean up stereo pairs and sort by…bash OSX: hours on a computer, list reboots.DS_Store - BASH shell - Linux/OSX = Find & Remove FilesThunderbird - control mail check intervalbash - pass arguments with flags to script