Skip to content

Commit b61a1fd

Browse files
committedJul 22, 2017
travis: More fixes.
* Symlink around the right way * Make the output a bit nicer.
1 parent 39daeba commit b61a1fd

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed
 

‎.travis/build.sh

+8-3
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ if [ ! -z "$PREBUILT_DIR" ]; then
345345
echo "Checking for '$HDMI2USB_FIRMWARE'"
346346
if [ -d "$HDMI2USB_FIRMWARE" ]; then
347347
echo "Changing $PLATFORM from '$(readlink unstable)' to '$HDMI2USB_FIRMWARE'"
348-
ln -sf unstable "$HDMI2USB_FIRMWARE"
348+
ln -sf "$HDMI2USB_FIRMWARE" unstable
349349
git add unstable
350350
git commit -a \
351351
-m "Updating unstable link (Travis build #$TRAVIS_BUILD_NUMBER of $GIT_REVISION for PLATFORM=$PLATFORM TARGET=$TARGET CPU=$CPU)" \
@@ -366,11 +366,16 @@ if [ ! -z "$PREBUILT_DIR" ]; then
366366
echo
367367
echo "Changes to be pushed (Try $i)"
368368
echo "---------------------------------------------"
369-
git diff origin/master --stat=1000,1000 --exit-code && break
369+
git diff origin/master --stat=1000,1000
370+
git diff origin/master --quiet --exit-code && break
370371
echo
371372
echo "Pushing (Try $i)"
372373
echo "---------------------------------------------"
373-
git push --quiet origin master > /dev/null 2>&1
374+
if git push --quiet origin master > /dev/null 2>&1 ; then
375+
echo "Push success!"
376+
else
377+
echo "Push failed :-("
378+
fi
374379
done
375380
echo
376381
echo "Push finished!"

0 commit comments

Comments
 (0)
Please sign in to comment.