rhboot / shim

UEFI shim loader
Other
857 stars 292 forks source link

make-certs: Handle missing OpenSSL installation #595

Open aronowski opened 1 year ago

aronowski commented 1 year ago

If there is no OpenSSL installation on the system, where the make-certs script is run at, no error message will be shown; instead the script will fail silently and no certificates will be generated.

This change introduces a simple check, if the openssl binary is present and informs the user, if it's missing, shortening debugging time from minutes to mere seconds.

A bashism has been used so a pretty message gets printed without moving the check to a section before set -e.