Paul Klumpp hace 12 años
padre
commit
9616314bc3
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  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/
 q2srv=$cwd/../q2srv/
 cd $cwd
 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 {
 function checkinstalled {
 	if [ "$1" != "" ]; then
 	if [ "$1" != "" ]; then
 		woot=$(which "$1" 2> /dev/null)
 		woot=$(which "$1" 2> /dev/null)