From 7f397a4da8add2a87f99da91a94931e8490ed9eb Mon Sep 17 00:00:00 2001 From: Jonas Date: Mon, 30 Mar 2020 19:36:10 +0200 Subject: [PATCH] Fix Joplin_install_and_update.sh (#2913) Make space after '"tag_name":' optional, to avoid the whole script failing without further notice. Co-authored-by: Laurent Cozic --- Joplin_install_and_update.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Joplin_install_and_update.sh b/Joplin_install_and_update.sh index 92b6ac7b7..4c82a0d52 100755 --- a/Joplin_install_and_update.sh +++ b/Joplin_install_and_update.sh @@ -101,8 +101,11 @@ else fi #----------------------------------------------------- -print "Checking latest version..." -RELEASE_VERSION=$(wget -qO - "https://api.github.com/repos/laurent22/joplin/releases/latest" | grep -Po '"tag_name": "v\K.*?(?=")') +# Download Joplin +#----------------------------------------------------- + +# Get the latest version to download +RELEASE_VERSION=$(wget -qO - "https://api.github.com/repos/laurent22/joplin/releases/latest" | grep -Po '"tag_name": ?"v\K.*?(?=")') # Check if it's in the latest version if [[ -e ~/.joplin/VERSION ]] && [[ $(< ~/.joplin/VERSION) == "${RELEASE_VERSION}" ]]; then