mirror of
https://github.com/ben-grande/qusal.git
synced 2025-07-23 22:51:02 -04:00
fix: conform files to editorconfig specification
This commit is contained in:
parent
89a4ea8073
commit
523bca2327
18 changed files with 49 additions and 36 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue