diff --git a/VERSION b/VERSION
index 5d4294b9120c5b004578efa6c4222c7d46106532..2411653a5008da93b0a5faf06e6edddff3082913 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 e38501a2ceb21c49f68520761363cd1227432c9d..2286ad4493ea826b75f95e0629e23f220babf473 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