Explains how to check if a bash shell script is being run or executed by the root user account under Linux, macOS, Unix and BSD.
Source: How to check the bash shell script is being run by root user or not – nixCraft
Explains how to check if a bash shell script is being run or executed by the root user account under Linux, macOS, Unix and BSD.
Source: How to check the bash shell script is being run by root user or not – nixCraft