systemd-lib: fix building -.slice (root slice)

The error was:

dirname: invalid option -- '.'
Try 'dirname --help' for more information.
This commit is contained in:
Sandro Jäckel 2023-03-20 01:11:23 +01:00
parent 0f3519bb0f
commit a10f3197fc
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -24,7 +24,7 @@ in rec {
}
''
name=${shellEscape name}
mkdir -p "$out/$(dirname "$name")"
mkdir -p "$out/$(dirname -- "$name")"
echo -n "$text" > "$out/$name"
''
else