Packages shouldn't have spaces in their names, but quote the values defensively.

This commit is contained in:
Dan Schaper 2016-10-07 16:08:15 -07:00
parent 7704bcd5e3
commit fc9468dec5

View file

@ -584,8 +584,8 @@ installPackages() {
for i in "${argArray1[@]}"; do
echo -n "::: Checking for $i..."
package_check ${i} > /dev/null
if ! [ $? -eq 0 ]; then
package_check "${i}" > /dev/null
if ! [ "$?" -eq 0 ]; then
echo -n " Not found! Installing...."
${SUDO} ${PKG_INSTALL} "$i" > /dev/null 2>&1
echo " done!"