Answers for "root check bash script"

0

root check bash script

#!/usr/bin/env bash
if [[ "$(id -u)" -ne 0 ]]; then
  # Code
  echo "Please, Check Root "
  exit 1
fi
function main() {
        echo "Complete!"
        exit 1
}
main
Posted by: Guest on August-01-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language