소스 검색

more info

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.