Fix script not catching exit code (#29)

This commit is contained in:
Ilir Bekteshi 2021-08-19 18:14:17 +02:00 committed by GitHub
parent bbdd4006fd
commit ed2b6e9115
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,4 +27,8 @@ shopt -s globstar
yamllint "${options[@]}" ${INPUT_FILE_OR_DIR:-.} yamllint "${options[@]}" ${INPUT_FILE_OR_DIR:-.}
exitcode=$?
shopt -u globstar shopt -u globstar
exit $exitcode