aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'units/meson-add-wants.sh')
-rwxr-xr-xunits/meson-add-wants.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/units/meson-add-wants.sh b/units/meson-add-wants.sh
index 70f7172ae..e2b260398 100755
--- a/units/meson-add-wants.sh
+++ b/units/meson-add-wants.sh
@@ -18,10 +18,10 @@ unitpath="${DESTDIR:-}${unitdir}/${unit}"
case "$target" in
*/)
- mkdir -p -m 0755 "$dir"
+ mkdir -vp -m 0755 "$dir"
;;
*)
- mkdir -p -m 0755 "$(basename "$dir")"
+ mkdir -vp -m 0755 "$(dirname "$dir")"
;;
esac