fn_check_root 215 B

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