fn_rootcheck 209 B

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