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/bashOSX Bash - commands I didn't know before (or saw…sqlite3 access via bashbash - pass arguments with flags to scriptBASH snippet - clean up stereo pairs and sort by…bash: for - looping over and processing files in…bash: for - looping to repeat commandsOS-X - file system check - fsck in Single User…