Compare commits

..

No commits in common. "ddea23dc301774fa7fc6f4e2c0c00eea365e104e" and "b9ba90d11423ba15c3993f8b13b746a08736fa4f" have entirely different histories.

1 changed files with 9 additions and 3 deletions

View File

@ -25,6 +25,14 @@ function get_shell_files {
get_staged_files | grep --regexp=".*\.sh$" --regexp="\.bash.*$" --regexp="\.zsh.*$" get_staged_files | grep --regexp=".*\.sh$" --regexp="\.bash.*$" --regexp="\.zsh.*$"
} }
#function blah {
#
#while read -r file; do
#files[${files[@]}+1]="$file"
#done < <()
#}
function main { function main {
check_dependencies_installed check_dependencies_installed
@ -33,9 +41,7 @@ function main {
files[${files[@]}+1]="$file" files[${files[@]}+1]="$file"
done < <(get_shell_files) done < <(get_shell_files)
if [[ "${#files[@]}" -ne 0 ]]; then shellcheck "${files[@]}"
shellcheck "${files[@]}"
fi
} }
main main