Merge pull request #12 from linuxserver/curl-fail

fail if the curl fails (ex: 404)
This commit is contained in:
j0nnymoe 2021-07-13 18:29:09 +01:00 committed by GitHub
commit 87b041ccaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ RUN \
DIGIKAM_VERSION=$(curl -s "https://invent.kde.org/graphics/digikam/-/tags?format=atom" \
| grep -m 1 -P '<title>(v\d\.\d\.\d)</title>' | sed 's/\(^\s*<title>v\|<\/title>\s*$\)//g'); \
fi && \
curl -o /app/digikam -L \
curl --fail -o /app/digikam -L \
https://download.kde.org/stable/digikam/${DIGIKAM_VERSION}/digiKam-${DIGIKAM_VERSION}-x86-64.appimage && \
chmod +x /app/digikam && \
echo "**** cleanup ****" && \