From d4c4b9b10a8645fa3049f42c25203fc2e65b526a Mon Sep 17 00:00:00 2001 From: Tekki Date: Thu, 28 Mar 2019 22:19:07 +0100 Subject: [PATCH] Replace curl with wget in installation script. (#1368) --- Joplin_install_and_update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Joplin_install_and_update.sh b/Joplin_install_and_update.sh index 0c920fbe9..5ff184bfb 100755 --- a/Joplin_install_and_update.sh +++ b/Joplin_install_and_update.sh @@ -30,7 +30,7 @@ fi #----------------------------------------------------- # Get the latest version to download -version=$(curl --silent "https://api.github.com/repos/laurent22/joplin/releases/latest" | grep -Po '"tag_name": "v\K.*?(?=")') +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) != "$version" ]]; then