diff --git a/cmd/ipsw/cmd/fw/aea.go b/cmd/ipsw/cmd/fw/aea.go index 5bb445829..72ae9bcc7 100644 --- a/cmd/ipsw/cmd/fw/aea.go +++ b/cmd/ipsw/cmd/fw/aea.go @@ -123,7 +123,7 @@ var aeaCmd = &cobra.Command{ } } } else { - if pemFile == "" { + if pemFile != "" { key, err = os.ReadFile(pemFile) if err != nil { return fmt.Errorf("failed to read pem file: %v", err)