#!/bin/bash
#
# This script checks if the AWS Command Line Interface (CLI) is installed
# on the system. It exits with a status of 0 if found, and 1 otherwise.
#

# Use 'command -v' to check for the existence of the 'aws' executable in the PATH.
# We redirect stdout and stderr to /dev/null to keep the check silent.
if command -v aws &> /dev/null; then
    exit 0
else
    exit 1
fi
