aboutsummaryrefslogtreecommitdiff
path: root/lint/sh.sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-31 23:07:20 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-31 23:07:20 +1300
commit9d044a7dae36d42d620a1a6bc63a43aab9a6b8b7 (patch)
tree92b1f50e6a584611ae63778734a38f132982004b /lint/sh.sh
parentMerge branch 'release/v0.1.0' (diff)
parentBump version number to 0.2.0 (diff)
downloaddotfiles-0.2.0.tar.gz (sig)
dotfiles-0.2.0.zip
Merge branch 'release/v0.2.0'v0.2.0
Diffstat (limited to 'lint/sh.sh')
-rw-r--r--lint/sh.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/lint/sh.sh b/lint/sh.sh
index 89704c0b..c1c972c8 100644
--- a/lint/sh.sh
+++ b/lint/sh.sh
@@ -1,6 +1,8 @@
-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 -- {} +
+set \
+ sh/profile \
+ sh/profile.d/*.sh \
+ sh/shinit \
+ sh/shrc \
+ sh/shrc.d/*.sh
+shellcheck -e SC1090 -s sh -- "$@" || exit
+printf 'POSIX shell dotfiles linted successfully.\n'