Compare commits

...

2 Commits

Author SHA1 Message Date
The Magician ddea23dc30 Don't error if there are no files to shellcheck 2023-12-07 15:31:43 +00:00
The Magician 7607234756 Remove commented code 2023-12-07 15:31:01 +00:00
1 changed files with 3 additions and 9 deletions

View File

@ -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