Replace curl with wget in installation script. (#1368)

pull/1374/head
Tekki 2019-03-28 22:19:07 +01:00 committed by Laurent Cozic
parent 4b9105edff
commit d4c4b9b10a
1 changed files with 1 additions and 1 deletions

View File

@ -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