fix: conform files to editorconfig specification

This commit is contained in:
Ben Grande 2024-07-08 17:26:34 +02:00
parent 89a4ea8073
commit 523bca2327
No known key found for this signature in database
GPG key ID: 00C64E14F51F9E56
18 changed files with 49 additions and 36 deletions

View file

@ -47,13 +47,16 @@ case "${find_tool}" in
;;
find)
files="$(find scripts/ salt/ -not \( -path "*/zsh" -prune \) -type f \
-exec file {} \+ | awk -F ":" '/ shell script,/{ print $1 }')"
-exec file {} \+ | awk -F ":" '/ shell script,/{ print $1 }')"
## No Shebang
sh_files="$(find salt/ -type f -name "rc.local")"
;;
esac
files="$(echo "$files" | sort -u)"
sh_files="$(echo "$sh_files" | sort -u)"
test -z "${files}" || shellcheck ${files}
test -z "${sh_files}" || shellcheck -s sh ${sh_files}
echo "${files}" | sort -u | tr " " "\n"
exit
#files="$(echo "$files" | sort -u)"
#sh_files="$(echo "$sh_files" | sort -u)"
#test -z "${files}" || shellcheck ${files}
#test -z "${sh_files}" || shellcheck -s sh ${sh_files}