Skip to content

Commit 1b5125d

Browse files
authored
Merge pull request #82 from enabokov/exit-code-register-aws
Add exit code to register_aws
2 parents e324284 + 578c82f commit 1b5125d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

git-secrets

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,12 @@ register_aws() {
236236
add_config 'secrets.patterns' "${opt_quote}${aws}(ACCOUNT|account|Account)_?(ID|id|Id)?${opt_quote}${connect}${opt_quote}[0-9]{4}\-?[0-9]{4}\-?[0-9]{4}${opt_quote}"
237237
add_config 'secrets.allowed' 'AKIAIOSFODNN7EXAMPLE'
238238
add_config 'secrets.allowed' "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
239+
240+
if [[ $? == 0 ]]; then
241+
echo 'OK'
242+
fi
243+
244+
exit $?
239245
}
240246

241247
aws_provider() {

0 commit comments

Comments
 (0)