Compare commits
2 Commits
b9ba90d114
...
ddea23dc30
Author | SHA1 | Date |
---|---|---|
The Magician | ddea23dc30 | |
The Magician | 7607234756 |
|
@ -25,14 +25,6 @@ function get_shell_files {
|
|||
get_staged_files | grep --regexp=".*\.sh$" --regexp="\.bash.*$" --regexp="\.zsh.*$"
|
||||
}
|
||||
|
||||
#function blah {
|
||||
#
|
||||
|
||||
#while read -r file; do
|
||||
#files[${files[@]}+1]="$file"
|
||||
#done < <()
|
||||
#}
|
||||
|
||||
function main {
|
||||
check_dependencies_installed
|
||||
|
||||
|
@ -41,7 +33,9 @@ function main {
|
|||
files[${files[@]}+1]="$file"
|
||||
done < <(get_shell_files)
|
||||
|
||||
shellcheck "${files[@]}"
|
||||
if [[ "${#files[@]}" -ne 0 ]]; then
|
||||
shellcheck "${files[@]}"
|
||||
fi
|
||||
}
|
||||
|
||||
main
|
||||
|
|
Loading…
Reference in New Issue