From 137ac8d2484ccca268636e54e8bd22dce6ca910a Mon Sep 17 00:00:00 2001 From: Chen Asraf Date: Fri, 6 Dec 2024 02:57:05 +0200 Subject: [PATCH] docs: update install script --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e59bf7b..57f0701 100755 --- a/README.md +++ b/README.md @@ -39,10 +39,15 @@ your setup: ```bash NCDIR="/path/to/root/of/nextcloud" # Root directory of your Nextcloud instance APPDIR="/custom_apps" # App install directory -APPVER="0.5.0" # App version to install +# navigate into app dir cd "$NCDIR/$APPDIR" -curl -L https://github.com/chenasraf/nextcloud-autocurrency/releases/download/v${APPVER}/autocurrency.tar.gz -o autocurrency.tar.gz + +# get latest version +APPVER=$(curl https://api.github.com/repos/chenasraf/nextcloud-autocurrency/releases/latest | grep tag_name | grep -Eo 'v[^"]+') + +# download & extract app +curl -L https://github.com/chenasraf/nextcloud-autocurrency/releases/download/${APPVER}/autocurrency-${APPVER}.tar.gz -o autocurrency.tar.gz tar xfv autocurrency.tar.gz rm -rf autocurrency.tar.gz ```