sshd: fix shellcheck warnings in prestart script (#340484)

This commit is contained in:
Jörg Thalheim
2024-09-28 09:49:25 +02:00
committed by GitHub
@@ -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}"} \