From cf6c141e57453aa288370e652847888d495b9bb3 Mon Sep 17 00:00:00 2001 From: Diego Betto Date: Mon, 3 Feb 2020 22:38:52 +0100 Subject: [PATCH] version attribute inside `joplin.desktop` is `X-AppImage-Version` (#2393) - version attribute inside `joplin.desktop` is `X-AppImage-Version` and not `X-AppImage-BuildId` - format is `X-AppImage-Version=X.Y.Z" so we need to change `cut` parameters (split on '=' and get 2nd value) --- Joplin_install_and_update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Joplin_install_and_update.sh b/Joplin_install_and_update.sh index fa7656d34b..d0544b79cc 100755 --- a/Joplin_install_and_update.sh +++ b/Joplin_install_and_update.sh @@ -100,7 +100,7 @@ if [[ ! -e ~/.joplin/VERSION ]] || [[ $(< ~/.joplin/VERSION) != "$RELEASE_VERSIO # This command extracts to squashfs-root by default and can't be changed... # So we run it in the tmp directory and clean up after ourselves (cd $TMPDIR && ~/.joplin/Joplin.AppImage --appimage-extract joplin.desktop &> /dev/null) - APPIMAGE_VERSION=$(grep "^X-AppImage-BuildId=" $TMPDIR/squashfs-root/joplin.desktop | head -n 1 | cut -d " " -f 1) + APPIMAGE_VERSION=$(grep "^X-AppImage-Version=" $TMPDIR/squashfs-root/joplin.desktop | head -n 1 | cut -d "=" -f 2) rm -rf $TMPDIR/squashfs-root # Only delete the desktop file if it will be replaced rm -f ~/.local/share/applications/appimagekit-joplin.desktop