1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Fix ubuntu install script

If no former version is present, the script fails since the rm commands do not succeed.
Added -f to rm in order to ignore non-existent directories to be deleted.
This commit is contained in:
Marcel von Maltitz 2018-09-21 12:55:01 +02:00 committed by GitHub
parent e31ffc9474
commit 73e79213dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ echo " |_| "
# Get the latest version to download
version=$(curl --silent "https://api.github.com/repos/laurent22/joplin/releases/latest" | grep -Po '"tag_name": "v\K.*?(?=")')
# Delete previous version
rm ~/.joplin/*.AppImage ~/.local/share/applications/joplin.desktop
rm -f ~/.joplin/*.AppImage ~/.local/share/applications/joplin.desktop
# Creates the folder where the binary will be stored
mkdir -p ~/.joplin/
# Download the latest version