OpenCorePkg icon indicating copy to clipboard operation
OpenCorePkg copied to clipboard

macrecovery: Fix ValueError

Open mkorje opened this issue 1 year ago • 2 comments

When running the script in a builder, I was getting the error that Image verification failed. (Sign not allowed in string format specifier). If os.get_terminal_size().columns is less than 2 then the align left padding has a negative value, giving the error ValueError: Sign not allowed in string format specifier. I just added a check before the value's use to ensure that it isn't negative.

mkorje avatar Aug 06 '24 11:08 mkorje

Thank you for pointing out the issue when running headless.

Can you confirm that it works fine for you with my suggested additional commit?

mikebeaton avatar Aug 07 '24 18:08 mikebeaton

Yes, I can confirm that it works fine for me with your commit. Thank you for that.

mkorje avatar Aug 08 '24 05:08 mkorje