瀏覽代碼

Making sure that applications don't start without compiling correctly.

David Piuva 5 年之前
父節點
當前提交
99591a1d8c
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Source/tools/buildAndRun.sh

+ 4 - 0
Source/tools/buildAndRun.sh

@@ -16,6 +16,10 @@ chmod +x ${ROOT_PATH}/tools/build.sh
 
 # Compile and link
 ${ROOT_PATH}/tools/build.sh $1 $2 $3 $4 $5 $6 $7 $8 $9
+if [ $? -ne 0 ]
+then
+	exit 1
+fi
 
 echo "Starting application at ${TARGET_FILE}"
 ${TARGET_FILE}