mirror of
https://github.com/systemd/systemd.git
synced 2025-01-03 05:18:09 +03:00
meson: fix dirname/basename confusion in meson-and-wants.sh install helper (#10126)
We would create a useless empty directory under build/. It seems we were lucky and all symlinks were installed into directories which were alredy created because we installed something into the same location earlier. While at it, also add '-v' to 'mkdir -p'. This will print the names of directories as they are created (just once), making it easier to see all of what the install script is doing.
This commit is contained in:
parent
214bd9f310
commit
3f491cccef
@ -18,10 +18,10 @@ unitpath="${DESTDIR:-}${unitdir}/${unit}"
|
|||||||
|
|
||||||
case "$target" in
|
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
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user