sshd: fix shellcheck warnings in prestart script

This commit is contained in:
r-vdp 2023-11-30 16:49:50 +01:00
parent c8e710a315
commit 342b5a8b85
No known key found for this signature in database

View File

@ -585,7 +585,8 @@ in
if ! [ -h "${k.path}" ]; then
rm -f "${k.path}"
fi
mkdir -m 0755 -p "$(dirname '${k.path}')"
mkdir -p "$(dirname '${k.path}')"
chmod 0755 "$(dirname '${k.path}')"
ssh-keygen \
-t "${k.type}" \
${lib.optionalString (k ? bits) "-b ${toString k.bits}"} \