diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-31 22:32:49 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-31 22:32:49 +1300 |
commit | e7213cb7cbd3149377cf6c08dc9c3813c99743f8 (patch) | |
tree | d754980f8c170cd260ea0984cadd9e295851a0b3 /check/bash.sh | |
parent | Use shell name not command in check/lint messages (diff) | |
download | dotfiles-e7213cb7cbd3149377cf6c08dc9c3813c99743f8.tar.gz dotfiles-e7213cb7cbd3149377cf6c08dc9c3813c99743f8.zip |
Tidy and correct linting for all three shells
Reduce each one to target only the dotfiles specifically for that shell,
as opposed to previously where for example the `check-sh` target was
checking shell shims in for `mpd` and `plenv`.
I'm still not completely sure that's the right approach, but it's at
least less conceptually muddy than what we had before.
Notably, the check and lint for Korn shell includes a single POSIX shell
script file in its `shrc.d` subdirectory, so that check is executed
separately.
Diffstat (limited to 'check/bash.sh')
-rw-r--r-- | check/bash.sh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/check/bash.sh b/check/bash.sh index a3efccb1..1f9e1b38 100644 --- a/check/bash.sh +++ b/check/bash.sh @@ -1,5 +1,11 @@ -for bash in bash/* bash/bashrc.d/* ; do - [ -f "$bash" ] || continue - bash -n "$bash" || exit +set \ + bash/bash_completion \ + bash/bash_completion.d/*.bash \ + bash/bash_logout \ + bash/bash_profile \ + bash/bashrc \ + bash/bashrc.d/*.bash +for bash ; do + bash -n -- "$bash" || exit done -printf 'All bash(1) scripts parsed successfully.\n' +printf 'GNU Bash dotfiles parsed successfully.\n' |