Yest you
Aha
You yesah
This commit is contained in:
Ben Grande 2023-11-06 13:30:58 +00:00
parent ae6e79bcf4
commit d4687f6254
No known key found for this signature in database
GPG key ID: 00C64E14F51F9E56
25 changed files with 253 additions and 59 deletions

View file

@ -29,14 +29,14 @@ fi
case "${find_tool}" in
fd|fdfind)
# shellcheck disable=2016,2215
files="$(${find_tool} . "${group}"/ --hidden --exclude=zsh --type=f \
files="$(${find_tool} . scripts/ "${group}"/ --hidden --exclude=zsh --type=f \
--exec sh -c '
case $( file -bi "$1" ) in (*/x-shellscript*)
printf "%s\n" "$1";; esac' sh)"
files="${files} $(${find_tool} . --max-depth=1 --type=f --extension=sh)"
;;
find)
files="$(find "${group}"/ -not \( -path "*/zsh" -prune \) -type f -exec sh -c '
files="$(find scripts/ "${group}"/ -not \( -path "*/zsh" -prune \) -type f -exec sh -c '
case $( file -bi "$1" ) in (*/x-shellscript*) exit 0;; esac
exit 1' sh {} \; -print)"
files="${files} $(find . -maxdepth 1 -type f -name "*.sh")"