From 0f68b676c6f836df28db99114a535724d7d64436 Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Fri, 10 Jun 2022 18:51:55 -0400 Subject: [PATCH] Please run as a non-root user --- newinstaller.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/newinstaller.sh b/newinstaller.sh index a3f2f05..cb202ca 100755 --- a/newinstaller.sh +++ b/newinstaller.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash + +if [ "$EUID" == 0 ] + then echo "Please run as a non-root user." + exit +fi + # Simple new installer HOME=$HOME USER=$USER