From b644bad2e1422a04b07d50750897a6e6c86beb4d Mon Sep 17 00:00:00 2001 From: probonopd Date: Fri, 9 Feb 2018 23:09:10 +0100 Subject: [PATCH] Do not download .AppImage.something files, closes #358 --- code/worker.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/worker.sh b/code/worker.sh index 06ad366f..aefbe46c 100644 --- a/code/worker.sh +++ b/code/worker.sh @@ -32,9 +32,9 @@ if [ x"${URL:0:22}" == x"https://api.github.com" ] || [ x"${GHURL:0:22}" == x"ht GHURL="$URL" fi echo "GitHub API URL detected" - URL=$(wget -q "$GHURL" -O - | grep browser_download_url | grep -i AppImage | grep -i 64 | head -n 1 | cut -d '"' -f 4) # TODO: Handle more than one AppImage per release + URL=$(wget -q "$GHURL" -O - | grep browser_download_url | grep -i AppImage | grep -v 'AppImage\.' | grep -i 64 | head -n 1 | cut -d '"' -f 4) # TODO: Handle more than one AppImage per release if [ x"" == x"$URL" ] ; then - URL=$(wget -q "$GHURL" -O - | grep browser_download_url | grep -i AppImage | head -n 1 | cut -d '"' -f 4) # No 64-bit one found, trying any; TODO: Handle more than one AppImage per release + URL=$(wget -q "$GHURL" -O - | grep browser_download_url | grep -i AppImage | grep -v 'AppImage\.' | head -n 1 | cut -d '"' -f 4) # No 64-bit one found, trying any; TODO: Handle more than one AppImage per release fi if [ x"" == x"$URL" ] ; then echo "Unable to get download URL for the AppImage. Is it really there on GitHub Releases?"