aboutsummaryrefslogtreecommitdiff
path: root/lint
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-23 20:16:51 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-23 20:16:51 +1200
commitcc1f70f15df2854a3adebbdd0d2fb721e96bc6ac (patch)
treed769a48a7586d8b08700bfb6020fd396d7a9f730 /lint
parentIf HEAD not set, suppress error (diff)
downloaddotfiles-cc1f70f15df2854a3adebbdd0d2fb721e96bc6ac.tar.gz
dotfiles-cc1f70f15df2854a3adebbdd0d2fb721e96bc6ac.zip
Specify shell dialect for bash/sh linting
Diffstat (limited to 'lint')
-rwxr-xr-xlint/bash2
-rwxr-xr-xlint/sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/lint/bash b/lint/bash
index 80206f05..0fd11df1 100755
--- a/lint/bash
+++ b/lint/bash
@@ -1,2 +1,2 @@
#!/bin/sh
-find bash -type f -print -exec shellcheck -- {} \;
+find bash -type f -print -exec shellcheck -s bash -- {} \;
diff --git a/lint/sh b/lint/sh
index f21cdddd..11511ebf 100755
--- a/lint/sh
+++ b/lint/sh
@@ -1,2 +1,2 @@
#!/bin/sh
-find sh -type f -print -exec shellcheck -- {} \;
+find sh -type f -print -exec shellcheck -s sh -- {} \;