Skip to content

Commit

Permalink
Fix Calibre download command
Browse files Browse the repository at this point in the history
  • Loading branch information
majutsushi committed Aug 3, 2024
1 parent 36bb7d1 commit b2b3bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/update-calibre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit b2b3bf5

Please sign in to comment.