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

Prevent the folder from being deleted

This commit is contained in:
Andros Fenollosa 2018-09-10 22:57:50 +02:00 committed by GitHub
parent de0c54c3c3
commit dcf78e8a06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
#!/bin/bash
set -e
version=$(curl --silent "https://api.github.com/repos/laurent22/joplin/releases/latest" | grep -Po '"tag_name": "v\K.*?(?=")')
rm -r ~/.joplin/ ~/.local/share/applications/joplin.desktop
rm ~/.joplin/*.AppImage ~/.local/share/applications/joplin.desktop
mkdir -p ~/.joplin/
wget -O ~/.joplin/Joplin-$version-x86_64.AppImage https://github.com/laurent22/joplin/releases/download/v$version/Joplin-$version-x86_64.AppImage
chmod +x ~/.joplin/Joplin-$version-x86_64.AppImage