mirror of
https://github.com/sobolevn/git-secret
synced 2024-10-31 21:20:29 +00:00
22 lines
418 B
Bash
Executable File
22 lines
418 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
targets=()
|
|
while IFS= read -r -d $'\0'; do
|
|
targets+=("$REPLY")
|
|
done < <(
|
|
find . -type f \( -name \*.bash -o -name \*.sh \) -print0; \
|
|
find . -name '*.bats' -not -name '*_no_shellcheck*' -print0; \
|
|
find libexec -type f -print0;
|
|
find bin -type f -print0)
|
|
|
|
if [[ $1 == --list ]]; then
|
|
printf "%s\n" "${targets[@]}"
|
|
exit 0
|
|
fi
|
|
|
|
LC_ALL=C.UTF-8 shellcheck "${targets[@]}"
|
|
|
|
exit $?
|