Fix log name extraction
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)