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:
parent
e31ffc9474
commit
73e79213dc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user