Don't error if there are no files to shellcheck
This commit is contained in:
parent
7607234756
commit
ddea23dc30
|
@ -33,7 +33,9 @@ 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
|
||||||
|
|
Loading…
Reference in New Issue