diff --git a/cemutil.sh b/cemutil.sh index fe57398..dbecab2 100755 --- a/cemutil.sh +++ b/cemutil.sh @@ -1,8 +1,13 @@ #!/bin/bash +if (( $EUID == 0 )); then + echo "Do not run as root." + exit 1 +fi + if [ -z "$DISPLAY" ]; then export DISPLAY=:0.0 -fi +fi # help function: function printhelp {