mirror of https://github.com/ericonr/sbctl.git
Formating: Added some misc formatting
Signed-off-by: Morten Linderud <morten@linderud.pw>
This commit is contained in:
parent
69e52d3efb
commit
947b6ba8e8
|
@ -70,7 +70,7 @@ func main() {
|
|||
if strings.HasPrefix(err.Error(), "unknown comman") {
|
||||
logging.Println(err.Error())
|
||||
} else if errors.Is(err, os.ErrPermission) {
|
||||
logging.Error(fmt.Errorf("sbtl requires root to run: %w", err))
|
||||
logging.Error(fmt.Errorf("sbctl requires root to run: %w", err))
|
||||
} else if errors.Is(err, sbctl.ErrImmutable) {
|
||||
logging.Println("You need to chattr -i files in efivarfs")
|
||||
} else if !errors.Is(err, ErrSilent) {
|
||||
|
|
|
@ -33,7 +33,7 @@ var signAllCmd = &cobra.Command{
|
|||
if errors.Is(err, sbctl.ErrAlreadySigned) {
|
||||
logging.Print("File have already been signed %s\n", entry.OutputFile)
|
||||
} else if err != nil {
|
||||
return err
|
||||
return fmt.Errorf("failed signing %s: %w", entry.File, err)
|
||||
} else {
|
||||
logging.Ok("Signed %s", entry.OutputFile)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue