aboutsummaryrefslogtreecommitdiff
path: root/test/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-02 17:03:37 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-02 17:03:37 +1200
commit64020bea700cd600d899a4e584419f98adcb9a4d (patch)
treec482b2df718826cf3b84cac8ca3ade7bb16b9855 /test/sh
parentSlightly nicer text syntax (diff)
downloaddotfiles-64020bea700cd600d899a4e584419f98adcb9a4d.tar.gz
dotfiles-64020bea700cd600d899a4e584419f98adcb9a4d.zip
Fix up exit values and glob checks
Diffstat (limited to 'test/sh')
-rwxr-xr-xtest/sh5
1 files changed, 2 insertions, 3 deletions
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'