]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tools/meson-vcs-tag: the third argument is optional
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 4 Dec 2023 03:36:53 +0000 (12:36 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 4 Dec 2023 10:29:52 +0000 (10:29 +0000)
Follow-up for 1a71ac07adafebe7e0074f92d049f72968ca2d47.

tools/meson-vcs-tag.sh

index b0ab0978c86f75fc9f4c8eb9618b687cbeaa2307..4a8dc89ab2c21a34b467b5e1d95afab5c6f58c7f 100755 (executable)
@@ -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.