diff --git a/day03/create_ec2.sh b/day03/create_ec2.sh index cb55720..068e563 100644 --- a/day03/create_ec2.sh +++ b/day03/create_ec2.sh @@ -4,7 +4,7 @@ set -euo pipefail check_awscli() { if ! command -v aws &> /dev/null; then echo "AWS CLI is not installed. Please install it first." >&2 - exit 1 + return 1 fi } @@ -88,4 +88,4 @@ main() { echo "EC2 instance creation completed." } -main "$@" +main "$@" \ No newline at end of file