aboutsummaryrefslogtreecommitdiff
path: root/aux/checks/shellcheck.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-04-01 22:25:46 -0300
committerEuAndreh <eu@euandre.org>2023-04-01 22:26:11 -0300
commit76e1a0925fde2cbf25b75409cd353e20b9cfef48 (patch)
treecc6c3bd8ec0b182011377a20ace0b10f55fd86b5 /aux/checks/shellcheck.sh
parentRevamp CI: simpler variant of the same functionality (diff)
downloadremembering-76e1a0925fde2cbf25b75409cd353e20b9cfef48.tar.gz
remembering-76e1a0925fde2cbf25b75409cd353e20b9cfef48.tar.xz
Revamp code under aux/
Diffstat (limited to 'aux/checks/shellcheck.sh')
-rwxr-xr-xaux/checks/shellcheck.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/aux/checks/shellcheck.sh b/aux/checks/shellcheck.sh
new file mode 100755
index 0000000..40fd364
--- /dev/null
+++ b/aux/checks/shellcheck.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -eu
+
+find . -name '*.sh' -print0 |
+ xargs -0 awk 'FNR==1 && /^#!\/bin\/sh$/ { print FILENAME }' |
+ xargs shellcheck