diff --git a/logseq-install.sh b/logseq-install.sh index 3733e82..99a2f46 100755 --- a/logseq-install.sh +++ b/logseq-install.sh @@ -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