aboutsummaryrefslogblamecommitdiff
path: root/scripts/assert-shellcheck.sh
blob: 76fb2d0cf1bd52314b92fab46e0f4c142e1bedc9 (plain) (tree)
1
2
3
4
5
6
7

         
 
                   
                     

                                                                
#!/bin/sh
set -eux

git ls-files -z | \
  grep -zv vendor | \
  xargs -0 awk 'FNR==1 && /^#!\/bin\/sh/ { print FILENAME }' | \
  xargs shellcheck