Bugfix: Mehrstellige Versionsnummern wurden nicht erkannt

This commit is contained in:
Tim Peters 2022-11-30 14:24:48 +01:00
parent a91ff40880
commit e44f255477

View File

@ -67,7 +67,7 @@ showHelp() {
}
getVersionLatest() {
VERSION_LATEST="$( wget -qO - https://github.com/logseq/logseq/releases/latest | grep -Poi "releases/tag/\K\d\.\d\.\d" | head -n 1 )"
VERSION_LATEST="$( wget -qO - https://github.com/logseq/logseq/releases/latest | grep -Poi "releases/tag/\K\d+\.\d+\.\d+" | head -n 1 )"
[ -n "$VERSION_LATEST" ] || err "Konnte nicht ermittelt werden"
}