Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Commit

Permalink
Don't overright lint_result with 0 when shellcheck succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwilkie committed Nov 3, 2016
1 parent 8ab80e8 commit cb39746
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lint
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ lint_sh() {
# the shellcheck is completely optional. If you don't like it
# don't have it installed.
if type shellcheck >/dev/null 2>&1; then
shellcheck "${filename}"
lint_result=$?
shellcheck "${filename}" || lint_result=1
fi

return $lint_result
Expand Down

0 comments on commit cb39746

Please sign in to comment.