Make sure that lgm is not ran as root.
This commit is contained in:
@@ -802,6 +802,12 @@ migrate_launcher() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# Make sure this is not ran as root
|
||||||
|
if [[ "$(whoami)" == "root" ]]; then
|
||||||
|
echo "Please do not run ${0##*/} as root."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Detect dialog interface type BEFORE potentially setting DISPLAY
|
# Detect dialog interface type BEFORE potentially setting DISPLAY
|
||||||
# This must happen before we modify DISPLAY to preserve console detection
|
# This must happen before we modify DISPLAY to preserve console detection
|
||||||
if [[ -z "$DISPLAY" ]]; then
|
if [[ -z "$DISPLAY" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user