Adds missing null check (#83)

Adds a check to make sure that the "$scripts" array in the install script is not empty.
pull/84/head
Ben Peachey 7 years ago committed by Joseph Werle
parent 2a30578d0b
commit e9a0278bce

@ -415,7 +415,7 @@ bpkg_install_from_remote () {
# install package dependencies
(cd "${cwd}/deps/${name}" && bpkg getdeps)
if [[ "${#scripts[@]}" -gt '0' ]]; then
if [[ "${#scripts[@]}" -gt '0' && "${scripts}" != "" ]]; then
## grab each script and place in deps directory
for (( i = 0; i < ${#scripts[@]} ; ++i )); do
(

Loading…
Cancel
Save