aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-06-18 16:35:55 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-06-18 16:35:55 +1200
commitf372b831ed58b0c1abf41e90ac2560508e849960 (patch)
tree7db34f93f5b65263daa5697184f348ca3082a01c
parentMore segmentation/tidying (diff)
downloaddotfiles-f372b831ed58b0c1abf41e90ac2560508e849960.tar.gz
dotfiles-f372b831ed58b0c1abf41e90ac2560508e849960.zip
Update check/lint sh
-rw-r--r--check/sh.sh8
-rw-r--r--lint/sh.sh6
2 files changed, 12 insertions, 2 deletions
diff --git a/check/sh.sh b/check/sh.sh
index 53d8c4b6..c5a86955 100644
--- a/check/sh.sh
+++ b/check/sh.sh
@@ -1,4 +1,10 @@
-for sh in sh/* sh/profile.d/* sh/shrc.d/* ; do
+for sh in \
+ sh/* sh/profile.d/* sh/shrc.d/* \
+ keychain/profile.d/* keychain/shrc.d/* \
+ ksh/shrc.d/* \
+ mpd/profile.d/* \
+ plenv/profile.d/* plenv/shrc.d/* \
+; do
[ -f "$sh" ] || continue
sh -n "$sh" || exit
done
diff --git a/lint/sh.sh b/lint/sh.sh
index ccf4cc7f..89704c0b 100644
--- a/lint/sh.sh
+++ b/lint/sh.sh
@@ -1,2 +1,6 @@
-find sh ksh/shrc.d mpd/profile.d \
+find sh \
+ keychain/profile.d keychain/shrc.d \
+ ksh/shrc.d \
+ mpd/profile.d \
+ plenv/profile.d plenv/shrc.d \
-type f -print -exec shellcheck -e SC1090 -s sh -- {} +