get_version.sh: Quote the ? wildcard that could otherwise break the regex in the presence of a single-letter file name

This commit is contained in:
Kamil Śliwak 2020-12-12 07:49:54 +01:00
parent 893a5b6e60
commit 4a16b13a57

View File

@ -28,4 +28,4 @@
set -e
grep -oP "PROJECT_VERSION \"?\K[0-9.]+(?=\")"? $(dirname "$0")/../CMakeLists.txt
grep -oP "PROJECT_VERSION \"?\K[0-9.]+(?=\")?" $(dirname "$0")/../CMakeLists.txt