File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,10 @@ elif echo "$response" | grep -q "^3"; then
3838fi
3939[ -z " $RELEASE " ] && exit 0
4040[ " $RELEASE " != " $SITE1 " ] && DOWLOAD_PAGE=" https://api.github.com/repos/$RELEASE /releases/latest" || DOWLOAD_PAGE=" https://www.gimp.org/downloads/"
41- version=$( curl -Ls " $DOWLOAD_PAGE " | tr ' ">< ' ' \n' | grep -i ' download.*x86_64.*mage$' | head -1) ; if ! echo " $version " | grep -q " ^http" ; then version=" https:$version " ; fi
41+ version=$( curl -Ls " $DOWLOAD_PAGE " | tr ' ">< ' ' \n' | grep -i ' download.*x86_64.*mage$' | head -1)
42+ if ! echo " $version " | grep -q " ^http" ; then
43+ version=" https:$version "
44+ fi
4245if [ -z " $version " ]; then
4346 printf " \n 💀 ERROR: it seems that upstream removed %b, please retry\n" " $RELEASE " && exit 1
4447else
@@ -61,7 +64,10 @@ set -u
6164APP=gimp
6265SITE="REPLACETHIS"
6366version0=$(cat "/opt/$APP/version")
64- version=$(curl -Ls "DOWLOAD_PAGE" | tr '">< ' '\n' | grep -i 'download.*x86_64.*mage$' | head -1); if ! echo "$version" | grep -q "^http"; then version="https:$version"; fi
67+ version=$(curl -Ls "DOWLOAD_PAGE" | tr '">< ' '\n' | grep -i 'download.*x86_64.*mage$' | head -1)
68+ if ! echo "$version" | grep -q "^http"; then
69+ version="https:$version"
70+ fi
6571[ -n "$version" ] || { echo "Error getting link"; exit 1; }
6672if command -v appimageupdatetool >/dev/null 2>&1; then
6773 cd "/opt/$APP" || exit 1
You can’t perform that action at this time.
0 commit comments