tools/meson-vcs-tag: the third argument is optional

Follow-up for 1a71ac07ad.
This commit is contained in:
Yu Watanabe
2023-12-04 10:29:52 +00:00
committed by Luca Boccassi
parent a483c75822
commit 67bc3c1a8c
+1 -1
View File
@@ -6,7 +6,7 @@ set -o pipefail
dir="${1:?}"
fallback="${2:?}"
version_tag="$3"
version_tag="${3:-}"
if [ -n "${version_tag}" ]; then
# If -Dversion_tag= was used, just use that without further changes.