Paul Klumpp il y a 12 ans
Parent
commit
9616314bc3
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 8 0
      q2compile/make_and_put_all.sh

+ 8 - 0
q2compile/make_and_put_all.sh

@@ -5,6 +5,14 @@ cwd=$(pwd)
 q2srv=$cwd/../q2srv/
 cd $cwd
 
+
+if [ "${USER}" == "root" ]; then
+	echo "Nono! Don't run this as root! Don't!"
+	echo "Switch to a normal user!"
+	echo
+	exit
+fi
+
 function checkinstalled {
 	if [ "$1" != "" ]; then
 		woot=$(which "$1" 2> /dev/null)