feat: add exits when encounters an error

This commit is contained in:
alessio
2021-06-23 17:40:15 +02:00
committed by Dario Tranchitella
parent 34583352e5
commit 824442b9ee
2 changed files with 6 additions and 0 deletions

View File

@@ -7,6 +7,9 @@
# e.g.: ./create-user-openshift.sh alice oil
# where `oil` is the Tenant and `alice` the owner
# Exit immediately if a command exits with a non-zero status.
set -e
# Check if OpenSSL is installed
if [[ ! -x "$(command -v openssl)" ]]; then
echo "Error: openssl not found"

View File

@@ -7,6 +7,9 @@
# e.g.: ./create-user.sh alice oil
# where `oil` is the Tenant and `alice` the owner
# Exit immediately if a command exits with a non-zero status.
set -e
# Check if OpenSSL is installed
if [[ ! -x "$(command -v openssl)" ]]; then
echo "Error: openssl not found"