do not run as root

This commit is contained in:
RealJohnGalt 2019-01-07 13:34:34 -08:00
parent 91e22b2bd3
commit 12d94ee485

View File

@ -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 {