mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
We cannot rely on what $SHELL says as it describes what the users default shell is and not which kind of shell /bin/sh is. So instead of checking the environment variable $SHELL, we can test whether the environment variable $BASH is set. If this is the case, we can be pretty sure that the script is executed by the bash shell. This fixes the error on Ubuntu 20.04: ./check_hostkeydoc se-certs/host-key.crt se-certs/ibm-z-host-key-signing.crt -c se-certs/DigiCertCA.crt -r se-certs/ibm-z-host-key.crl ./check_hostkeydoc: 42: set: Illegal option -o pipefail Reviewed-by: Viktor Mihajlovski <mihajlov@linux.ibm.com> Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>