Skip to content

Commit 1dafb23

Browse files
committed
Corrected logic for removing elements from array.
1 parent c48645a commit 1dafb23

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/common.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ download_dependency() {
105105
}
106106

107107
download_packages() {
108+
# Using unset to remove elements from an array did not always yield
109+
# the expected outcome... for instance, removing "python2.7-doc"
110+
# resulted in the following error: invalid arithmetic operator (error token is ".7-doc")
108111
local packages=("$@")
109112
local pkgs=()
110113
for package in "${packages[@]}"; do

0 commit comments

Comments
 (0)