diff --git a/scripts/update-calibre.sh b/scripts/update-calibre.sh index 1d99d6d..05a660e 100755 --- a/scripts/update-calibre.sh +++ b/scripts/update-calibre.sh @@ -20,7 +20,7 @@ CALIBRE_TAR_PATH="$(mktemp -t calibre-XXXXXX.txz)" trap "rm -rf '${CALIBRE_TAR_PATH:-''}'" EXIT DOWNLOAD_URL="$(curl -sS "$RELEASE_URL" | jq -r '.assets[] | select(.name | endswith("-x86_64.txz")).browser_download_url')" -curl -sS -o "$CALIBRE_TAR_PATH" "$DOWNLOAD_URL" +curl -sSL -o "$CALIBRE_TAR_PATH" "$DOWNLOAD_URL" rm -rf "$CALIBRE_BIN_PATH" mkdir "$CALIBRE_BIN_PATH" tar -x -C "$CALIBRE_BIN_PATH" -f "$CALIBRE_TAR_PATH"