do not run as root
This commit is contained in:
parent
91e22b2bd3
commit
12d94ee485
@ -1,8 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if (( $EUID == 0 )); then
|
||||||
|
echo "Do not run as root."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$DISPLAY" ]; then
|
if [ -z "$DISPLAY" ]; then
|
||||||
export DISPLAY=:0.0
|
export DISPLAY=:0.0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# help function:
|
# help function:
|
||||||
function printhelp {
|
function printhelp {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user