From 73e79213dc44e31adfe8a28d50506959ad91bf0a Mon Sep 17 00:00:00 2001 From: Marcel von Maltitz Date: Fri, 21 Sep 2018 12:55:01 +0200 Subject: [PATCH] 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. --- install_ubuntu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_ubuntu.sh b/install_ubuntu.sh index 1827545da..c2488b65d 100644 --- a/install_ubuntu.sh +++ b/install_ubuntu.sh @@ -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