Fix arithmetic bug
This commit is contained in:
parent
ddea23dc30
commit
106cc72726
|
@ -30,7 +30,7 @@ function main {
|
||||||
|
|
||||||
declare -a files=()
|
declare -a files=()
|
||||||
while read -r file; do
|
while read -r file; do
|
||||||
files[${files[@]}+1]="$file"
|
files[${#files[@]}+1]="$file"
|
||||||
done < <(get_shell_files)
|
done < <(get_shell_files)
|
||||||
|
|
||||||
if [[ "${#files[@]}" -ne 0 ]]; then
|
if [[ "${#files[@]}" -ne 0 ]]; then
|
||||||
|
|
Loading…
Reference in New Issue