diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-04-20 12:06:14 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-04-24 19:25:33 -0400 |
commit | dc25d2adb5ed252c2f702f0075ad74fee684d78a (patch) | |
tree | 6647fc20f59dbfa2ff5554b47839d859195e617f /tools | |
parent | 6800fe7f0678c2a3875005bdef147e10eac67428 (diff) | |
download | systemd-dc25d2adb5ed252c2f702f0075ad74fee684d78a.tar.gz |
meson: $DESTDIR might be undefined
This causes an error with -u. Just add an empty fallback.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/meson-make-symlink.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/meson-make-symlink.sh b/tools/meson-make-symlink.sh index 69eab9ba73..360ff92ebb 100755 --- a/tools/meson-make-symlink.sh +++ b/tools/meson-make-symlink.sh @@ -3,9 +3,9 @@ # this is needed mostly because $DESTDIR is provided as a variable, # and we need to create the target directory... -mkdir -vp "$(dirname "${DESTDIR}$2")" +mkdir -vp "$(dirname "${DESTDIR:-}$2")" if [ "$(dirname $1)" = . ]; then - ln -vfs -T "$1" "${DESTDIR}$2" + ln -vfs -T "$1" "${DESTDIR:-}$2" else - ln -vfs -T --relative "${DESTDIR}$1" "${DESTDIR}$2" + ln -vfs -T --relative "${DESTDIR:-}$1" "${DESTDIR:-}$2" fi |