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 NULL DEVICE - redirecting output & errorsbash OSX iTerm2 - display inline images in terminalbash: for - looping to repeat commandsOSX review login items via bash+applescriptBASH snippet - clean up stereo pairs and sort by…bash combine pdf or other image files into pdfBash Substring Matching within Stringsqlite3 access via bashbash - pass arguments with flags to script