From d8fa24dcd8dadae6fd1d43a4a0a76f702bce14cb Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 20 May 2018 11:02:41 -0700 Subject: Travis: don't fail Linux build when .zsync is missing It seems that sometimes the AppImage tooling gets confused and doesn't create a .zsync file. That should cause Travis to fail. Signed-off-by: Dirk Hohndel --- scripts/linux/after_success.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'scripts/linux/after_success.sh') diff --git a/scripts/linux/after_success.sh b/scripts/linux/after_success.sh index 480b82431..5a1a5f76c 100644 --- a/scripts/linux/after_success.sh +++ b/scripts/linux/after_success.sh @@ -12,5 +12,11 @@ ls -lh Subsurface*.AppImage # get and run the upload script wget -c https://raw.githubusercontent.com/dirkhh/uploadtool/master/upload.sh -bash ./upload.sh Subsurface*.AppImage Subsurface*.AppImage.zsync + +# don't fail if the zsync file is missing +if [ -f Subsurface*.AppImage.zsync ] ; then + bash ./upload.sh Subsurface*.AppImage Subsurface*.AppImage.zsync +else + bash ./upload.sh Subsurface*.AppImage +fi bash ./upload.sh smtk2ssrf*.AppImage -- cgit v1.2.3-70-g09d2