fn_check_root 217 B

12345678910
  1. #!/bin/bash
  2. # LGSM fn_check_root function
  3. # Author: Daniel Gibbs
  4. # Website: http://gameservermanagers.com
  5. # Version: 311015
  6. if [ $(whoami) = "root" ]; then
  7. fn_printfailnl "Do NOT run this script as root!"
  8. exit 1
  9. fi