fix(iam-role): Delete temporary prowler.sts_assumed* if error

This commit is contained in:
Pepe Fagoaga
2021-11-12 19:33:22 +01:00
parent e4edb5e39e
commit 563cd71060
2 changed files with 6 additions and 3 deletions

View File

@@ -43,6 +43,7 @@ cleanTemp(){
if [[ $KEEPCREDREPORT -ne 1 ]]; then
rm -fr $TEMP_REPORT_FILE
fi
cleanSTSAssumeFile
}
# Delete the temporary report file if we get interrupted/terminated