Autocaliweb: fix Calibre download
This commit is contained in:
parent
1f44bd8e40
commit
0ce12acf26
@ -50,7 +50,7 @@ fetch_and_deploy_gh_release "kepubify" "pgaskin/kepubify" "singlefile" "latest"
|
|||||||
msg_info "Installing Calibre"
|
msg_info "Installing Calibre"
|
||||||
CALIBRE_RELEASE="$(curl -s https://api.github.com/repos/kovidgoyal/calibre/releases/latest | grep -o '"tag_name": "[^"]*' | cut -d'"' -f4)"
|
CALIBRE_RELEASE="$(curl -s https://api.github.com/repos/kovidgoyal/calibre/releases/latest | grep -o '"tag_name": "[^"]*' | cut -d'"' -f4)"
|
||||||
CALIBRE_VERSION=${CALIBRE_RELEASE#v}
|
CALIBRE_VERSION=${CALIBRE_RELEASE#v}
|
||||||
curl -fsSL https://github.com/kovidgoyal/releases/download/${CALIBRE_RELEASE}/calibre-${CALIBRE_VERSION}-x86_64.txz -o /tmp/calibre.txz
|
curl -fsSL https://github.com/kovidgoyal/calibre/releases/download/${CALIBRE_RELEASE}/calibre-${CALIBRE_VERSION}-x86_64.txz -o /tmp/calibre.txz
|
||||||
$STD tar -xf /tmp/calibre.txz /opt/calibre
|
$STD tar -xf /tmp/calibre.txz /opt/calibre
|
||||||
rm /tmp/calibre.txz
|
rm /tmp/calibre.txz
|
||||||
$STD /opt/calibre/calibre_postinstall
|
$STD /opt/calibre/calibre_postinstall
|
||||||
|
Loading…
x
Reference in New Issue
Block a user