aboutsummaryrefslogtreecommitdiff
path: root/lint
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-30 23:39:15 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-30 23:39:15 +1300
commit420c5f50624bba099a4e1cf4b8b50b635aad4989 (patch)
tree7f243e48a4b97e9457397577973bc040f771562e /lint
parentRemove unneeded typeset call (diff)
downloaddotfiles-420c5f50624bba099a4e1cf4b8b50b635aad4989.tar.gz
dotfiles-420c5f50624bba099a4e1cf4b8b50b635aad4989.zip
Clean up lint scripts a bit
Diffstat (limited to 'lint')
-rwxr-xr-xlint/bash2
-rwxr-xr-xlint/ksh4
-rwxr-xr-xlint/sh2
-rwxr-xr-xlint/yash2
4 files changed, 6 insertions, 4 deletions
diff --git a/lint/bash b/lint/bash
index 9a9ad758..771f2a89 100755
--- a/lint/bash
+++ b/lint/bash
@@ -1,2 +1,2 @@
#!/bin/sh
-find bash -type f -print -exec shellcheck -e SC1090 -s bash -- {} \;
+find bash -type f -print -exec shellcheck -e SC1090 -s bash -- {} +
diff --git a/lint/ksh b/lint/ksh
index 5c5445fc..ee49d178 100755
--- a/lint/ksh
+++ b/lint/ksh
@@ -1,2 +1,4 @@
#!/bin/sh
-find ksh -type f -print -exec shellcheck -e SC1090 -s ksh -- {} \;
+find ksh \
+ -type f -name '*.sh' -exec shellcheck -e SC1090 -s sh -- {} + -o \
+ -type f -exec shellcheck -e SC1090 -s ksh -- {} +
diff --git a/lint/sh b/lint/sh
index 7168a5bc..18f2f551 100755
--- a/lint/sh
+++ b/lint/sh
@@ -1,2 +1,2 @@
#!/bin/sh
-find sh -type f -print -exec shellcheck -e SC1090 -s sh -- {} \;
+find sh -type f -print -exec shellcheck -e SC1090 -s sh -- {} +
diff --git a/lint/yash b/lint/yash
index c2eacab3..1397f9f1 100755
--- a/lint/yash
+++ b/lint/yash
@@ -1,2 +1,2 @@
#!/bin/sh
-find yash -type f -print -exec shellcheck -e SC1090 -s sh -- {} \;
+find yash -type f -print -exec shellcheck -e SC1090 -s sh -- {} +