From 847e6412143659b22488a8e305ce7351f39f2f04 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Fri, 12 May 2017 21:58:09 +0300
Subject: [PATCH] - Fix issue with shell-lint hook, didn't check files after a
 failure. - Bumped patch version.

---
 VERSION    | 2 +-
 shell-lint | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/VERSION b/VERSION
index 5d4294b..2411653 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.5.1
\ No newline at end of file
+0.5.2
\ No newline at end of file
diff --git a/shell-lint b/shell-lint
index e38501a..2286ad4 100755
--- a/shell-lint
+++ b/shell-lint
@@ -2,5 +2,6 @@
 set -eu
 for filename in "$@"
 do
-    /usr/bin/env -i /bin/sh -en "$filename"
+    /usr/bin/env -i /bin/sh -en "$filename" || failed=1
 done
+[ "${failed:-0}" -eq 1 ] && exit 1
-- 
GitLab