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

Follow-up for 1a71ac07ad.
This commit is contained in:
Yu Watanabe 2023-12-04 12:36:53 +09:00 committed by Luca Boccassi
parent a483c75822
commit 67bc3c1a8c

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.