Browse Source

more info

Paul Klumpp 12 years ago
parent
commit
2d6d26c786
1 changed files with 15 additions and 6 deletions
  1. 15 6
      is_cimsqwbot.sh

+ 15 - 6
is_cimsqwbot.sh

@@ -48,12 +48,21 @@ if [ "$INSTALL" == "1" ]; then
 		qmake
 		make
 
-		LD_LIBRARY_PATH=$LIBPATH ./cimsqwbot &
-		PID=$!
-		echo PID $PID
-
-		sleep 1
-		kill $PID
+    if [ -f "./cimsqwbot" ]; then
+  		LD_LIBRARY_PATH=$LIBPATH ./cimsqwbot &
+  		PID=$!
+  		echo PID $PID
+
+	  	sleep 1
+		  kill $PID
+    else
+      echo
+      echo "It seems there have been problems compiling this thing! The binary ./cimsqwbot is missing."
+      echo "This is awkward. Probably some dependency was missing or had a wrong version while compilation."
+      echo "Better go have a chat to the devs at irc://quakenet.org/qwnet"
+      echo
+      exit
+    fi
 
 	  # cfg file should have been created by the start of cimsqwbot.