checkroot.sh 127 B

12345678910
  1. #!/bin/sh
  2. echo -e "checking root"
  3. if [ "$EUID" = 0 ]; then
  4. echo -e "Please run as root"
  5. exit
  6. else
  7. echo -e "root ok"
  8. fi