fix(secrets_library): Verify if detect-secrets library is missing (#1080)

This commit is contained in:
Sergio Garcia
2022-03-25 13:19:05 +01:00
committed by GitHub
parent 1e87ef12ee
commit 8582e40edf
8 changed files with 268 additions and 233 deletions

View File

@@ -16,7 +16,7 @@ secretsDetector(){
PYTHON_PIP_DETECTSECRETS=$(which detect-secrets)
if [ -z "${PYTHON_PIP_DETECTSECRETS}" ]; then
echo -e "\n$RED ERROR!$NORMAL python library detect-secrets not found. Make sure it is installed correctly and in your \$PATH\n"
EXITCODE=1
EXITCODE=241
exit $EXITCODE
else
SECRETS_TEMP_FOLDER="$PROWLER_DIR/secrets-$ACCOUNT_NUM"