dotfiles/termscripts/checkbashismsfolder.sh

4 lines
146 B
Bash
Raw Normal View History

#!/usr/bin/env sh
2019-07-11 16:09:05 +02:00
[ "$#" -eq 1 ] && gawk '/^#!.*( |[/])sh/{printf "%s\0", FILENAME} {nextfile}' "$(readlink -f "$1")/*" | xargs -0 checkbashisms