diff options
author | EuAndreh <eu@euandre.org> | 2020-12-24 20:24:05 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-12-24 20:31:46 -0300 |
commit | 15c4774f17f67eb69a0162390b77201e7817fe94 (patch) | |
tree | 3adf4a6a62dd9fea579dd9bbcbf6cacc03c1bf98 /scripts/assert-shellcheck.sh | |
parent | Use MKV over webm (diff) | |
download | euandre.org-15c4774f17f67eb69a0162390b77201e7817fe94.tar.gz euandre.org-15c4774f17f67eb69a0162390b77201e7817fe94.tar.xz |
Use /bin/sh over Bash
Diffstat (limited to '')
-rwxr-xr-x | scripts/assert-shellcheck.sh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/scripts/assert-shellcheck.sh b/scripts/assert-shellcheck.sh index e24c29c..d07815b 100755 --- a/scripts/assert-shellcheck.sh +++ b/scripts/assert-shellcheck.sh @@ -1,6 +1,5 @@ -#!/usr/bin/env bash -set -Eeuo pipefail -cd "$(dirname "${BASH_SOURCE[0]}")" -cd ../ +#!/bin/sh -eux -git ls-files | grep '\.sh$' | xargs shellcheck +git ls-files -z | \ + xargs -0 awk 'FNR==1 && /^#!\/bin\/sh/ { print FILENAME }' | \ + xargs shellcheck |