From 64020bea700cd600d899a4e584419f98adcb9a4d Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 2 Aug 2016 17:03:37 +1200 Subject: Fix up exit values and glob checks --- test/sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/sh') diff --git a/test/sh b/test/sh index 354a40c7..47e41c77 100755 --- a/test/sh +++ b/test/sh @@ -1,7 +1,6 @@ #!/bin/sh for sh in sh/* sh/profile.d/* ; do - if [ -f "$sh" ] && ! sh -n "$sh" ; then - exit 1 - fi + [ -f "$sh" ] || continue + sh -n "$sh" || exit done printf 'All sh(1) scripts parsed successfully.\n' -- cgit v1.2.3