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