Skip to content

Commit fd13318

Browse files
authored
Update gimp
1 parent 5ccb928 commit fd13318

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

programs/x86_64/gimp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ elif echo "$response" | grep -q "^3"; then
3838
fi
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
4245
if [ -z "$version" ]; then
4346
printf "\n 💀 ERROR: it seems that upstream removed %b, please retry\n" "$RELEASE" && exit 1
4447
else
@@ -61,7 +64,10 @@ set -u
6164
APP=gimp
6265
SITE="REPLACETHIS"
6366
version0=$(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; }
6672
if command -v appimageupdatetool >/dev/null 2>&1; then
6773
cd "/opt/$APP" || exit 1

0 commit comments

Comments
 (0)