Commit c8986e871f82b497493d28c36be1a755c2ea6b8d

Anthony Green 2019-11-13T06:01:43

Fix log name extraction

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/.travis/build.sh b/.travis/build.sh
index ba0412c..ad8163e 100755
--- a/.travis/build.sh
+++ b/.travis/build.sh
@@ -23,10 +23,10 @@ function build_cfarm()
 {
     curl -u ${CFARM_AUTH} https://cfarm-test-libffi-libffi.apps.home.labdroid.net/test?host=${HOST}\&commit=${TRAVIS_COMMIT} | tee build.log
     echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
-    echo $(grep '==LOGFILE==' build.log)
-    echo $(grep '==LOGFILE==' build.log | cut -b13-)
+    echo $(tail build.log | grep '^==LOGFILE==')
+    echo $(tail build.log | grep '^==LOGFILE==' | cut -b13-)
     echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
-    curl -u ${CFARM_AUTH} "$(grep '== LOGFILE ==' build.log | cut -b15-)" > libffi.log
+    curl -u ${CFARM_AUTH} "$(tail build.log | grep '^== LOGFILE ==' | cut -b15-)" > libffi.log
 
     ./rlgl l https://rl.gl
     ID=$(./rlgl start)