From f53a32ae268b6ef37778b239438bdeffb537b54e Mon Sep 17 00:00:00 2001 From: "C.J" <31103058+zfLQ2qx2@users.noreply.github.com> Date: Tue, 12 Jan 2021 11:03:30 -0500 Subject: [PATCH] Additional check for location of awscli --- include/awscli_detector | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/awscli_detector b/include/awscli_detector index 40fb03ba..6a1fd6b1 100644 --- a/include/awscli_detector +++ b/include/awscli_detector @@ -12,8 +12,11 @@ # specific language governing permissions and limitations under the License. # AWS-CLI detector variable -AWSCLI=$(which aws) -if [ -z "${AWSCLI}" ]; then +if [ ! -z $(which aws) ]; then + AWSCLI=$(which aws) +elif [ ! -z $(type -p aws) ]; then + AWSCLI=$(type -p aws) +else echo -e "\n$RED ERROR!$NORMAL AWS-CLI (aws command) not found. Make sure it is installed correctly and in your \$PATH\n" EXITCODE=1 exit $EXITCODE