Comment 2 for bug 1712395

Revision history for this message
Austin English (austinenglish) wrote :

I don't know why you'd need a separate (non builtin, go) package. `file` does this just fine:

if [ -d .git ] ; then
    files_to_check="$(git ls-files | xargs file | grep -e 'POSIX shell script' | cut -d : -f1)"
else
    files_to_check="$(find . -type f -exec file {} \; | grep -e 'POSIX shell script' | cut -d : -f1)"
fi

(from https://github.com/Winetricks/winetricks/blob/master/tests/shell-checks#L49)