#!/bin/sh -x
# Run shellcheck on scripts under bin and scripts directories
# shellcheck disable=SC2046,SC2038
shellcheck -s ksh $(find .copr bin scripts src/cmd/ksh93/functions src/lib/libast/tests -type f |
                    xargs file |
                    grep "shell script" |
                    cut -d':' -f1)
