diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-02 17:03:37 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-02 17:03:37 +1200 |
commit | 64020bea700cd600d899a4e584419f98adcb9a4d (patch) | |
tree | c482b2df718826cf3b84cac8ca3ade7bb16b9855 /test/bash | |
parent | Slightly nicer text syntax (diff) | |
download | dotfiles-64020bea700cd600d899a4e584419f98adcb9a4d.tar.gz dotfiles-64020bea700cd600d899a4e584419f98adcb9a4d.zip |
Fix up exit values and glob checks
Diffstat (limited to 'test/bash')
-rwxr-xr-x | test/bash | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,7 +1,6 @@ #!/bin/sh for bash in bash/* bash/bashrc.d/* bash/bash_profile.d/* ; do - if [ -f "$bash" ] && ! bash -n "$bash" ; then - exit 1 - fi + [ -e "$bash" ] || continue + bash -n "$bash" || exit done printf 'All bash(1) scripts parsed successfully.\n' |