Paul Klumpp преди 12 години
родител
ревизия
2d6d26c786
променени са 1 файла, в които са добавени 15 реда и са изтрити 6 реда
  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.