mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 23:05:05 +00:00
Additional check for location of awscli @zfLQ2qx2
Additional check for location of awscli @zfLQ2qx2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user