You've already forked joplin
							
							
				mirror of
				https://github.com/laurent22/joplin.git
				synced 2025-10-31 00:07:48 +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:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user