Kleiner Bugfix

This commit is contained in:
Tim Peters 2022-08-15 19:38:52 +02:00
parent d89cea4e70
commit 38f466a77b

View File

@ -48,7 +48,7 @@ getVersionLatest() {
} }
getVersionCurrent() { getVersionCurrent() {
local FILENAME="$( ls -1rt ~/.local/bin/Logseq-*AppImage | head -n1 )" local FILENAME="$( ls -1rt ~/.local/bin/Logseq-*AppImage 2>/dev/null | head -n1 )"
if [ -n "$FILENAME" ]; then if [ -n "$FILENAME" ]; then
VERSION_CURRENT="$( echo $FILENAME | grep -Poi "Logseq-linux-x64-\K\d\.\d\.\d" | head -n 1 )" VERSION_CURRENT="$( echo $FILENAME | grep -Poi "Logseq-linux-x64-\K\d\.\d\.\d" | head -n 1 )"
else else