Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bash 3.x compatibility; avoid unbound variable error
bash 3.x treats ${foo[*]} on an empty array as an unbound variable. Newer bash 4.x and 5.x does not have this problem. We can use ${#foo[@]} instead, to check if the array is empty.
- Loading branch information