don't fail kexec if no key can be found in an account

This commit is contained in:
Jörg Thalheim 2023-02-22 16:20:19 +01:00
parent cf172a5922
commit 0a346c724c

View file

@ -37,7 +37,7 @@ in {
key="$home/$file"
if [[ -e "$key" ]]; then
# workaround for debian shenanigans
grep -o '\(ssh-[^ ]* .*\)' "$key" >> ssh/authorized_keys
grep -o '\(ssh-[^ ]* .*\)' "$key" >> ssh/authorized_keys || true
fi
done
done