|author||Tom Ryder <email@example.com>||2017-10-31 22:32:49 +1300|
|committer||Tom Ryder <firstname.lastname@example.org>||2017-10-31 22:32:49 +1300|
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/ksh.sh')
1 files changed, 7 insertions, 4 deletions
diff --git a/check/ksh.sh b/check/ksh.sh
index 51e71e19..f4bade82 100644
@@ -1,5 +1,8 @@
-for ksh in ksh/* ksh/kshrc.d/* ; do
- [ -f "$ksh" ] || continue
- ksh -n "$ksh" || exit
+ ksh/kshrc \
+for ksh ; do
+ ksh -n -- "$ksh" || exit
-printf 'All ksh scripts parsed successfully.\n'
+sh -n -- ksh/shrc.d/ksh.sh || exit
+printf 'Korn shell dotfiles parsed successfully.\n'