Bugfix: Mehrstellige Versionsnummern wurden nicht erkannt

This commit is contained in:
Tim Peters 2022-12-01 18:50:27 +01:00
parent e44f255477
commit 88e2d588f0

View File

@ -76,7 +76,7 @@ getVersionCurrent() {
FILENAME="$( ls -1rt ~/.local/bin/Logseq-*AppImage 2>/dev/null | head -n1 )"
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
VERSION_CURRENT=
fi