From dc25d2adb5ed252c2f702f0075ad74fee684d78a Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Thu, 20 Apr 2017 12:06:14 -0400 Subject: meson: $DESTDIR might be undefined This causes an error with -u. Just add an empty fallback. --- units/meson-add-wants.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'units') diff --git a/units/meson-add-wants.sh b/units/meson-add-wants.sh index 7fbf5ed6fc..e2f5a355bc 100755 --- a/units/meson-add-wants.sh +++ b/units/meson-add-wants.sh @@ -6,14 +6,14 @@ unit="$3" case "$target" in */?*) # a path, but not just a slash at the end - dir="${DESTDIR}${target}" + dir="${DESTDIR:-}${target}" ;; *) - dir="${DESTDIR}${unitdir}/${target}" + dir="${DESTDIR:-}${unitdir}/${target}" ;; esac -unitpath="${DESTDIR}${unitdir}/${unit}" +unitpath="${DESTDIR:-}${unitdir}/${unit}" case "$target" in */) -- cgit v1.2.3-54-g00ecf