Added print layout for key syncing

Signed-off-by: Morten Linderud <morten@linderud.pw>
This commit is contained in:
Morten Linderud 2021-05-20 00:51:54 +02:00
parent fe514e1af7
commit 6b0242c953
No known key found for this signature in database
GPG Key ID: E742683BA08CB2FF
1 changed files with 2 additions and 1 deletions

View File

@ -28,11 +28,12 @@ var enrollKeysCmd = &cobra.Command{
if isImmutable {
return sbctl.ErrImmutable
}
logging.Print("Syncing %s to EFI variables...", sbctl.KeysPath)
logging.Print("Syncing keys to EFI variables...")
synced := sbctl.SBKeySync(sbctl.KeysPath)
if !synced {
return errors.New("couldn't sync keys")
}
logging.Println("")
logging.Ok("Synced keys!")
return nil
},