Pull fixed version of calibre based on build time

This commit is contained in:
TheSpad
2022-07-24 15:28:45 +01:00
parent ea6561e64e
commit edb64a22b7
2 changed files with 9 additions and 3 deletions
+2 -3
View File
@@ -31,6 +31,7 @@ fi
export DEBIAN_FRONTEND="noninteractive"
CALIBRE_RELEASE="$(cat /CALIBRE_RELEASE)"
PACKAGES+=("xz-utils")
if [ ! -L /usr/lib/x86_64-linux-gnu/libGL.so.1 ]; then
@@ -60,11 +61,9 @@ fi
echo "**** Fetching calibre bin ****"
if [ -z ${CALIBRE_RELEASE+x} ]; then
CALIBRE_RELEASE=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
| awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's/^v//g'); \
fi
CALIBRE_RELEASE=$(echo "${CALIBRE_RELEASE}" | sed 's/^v//g' )
mkdir -p \
/app/calibre