From fc9468dec510dd7a59786217f56562034d51c22e Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Fri, 7 Oct 2016 16:08:15 -0700 Subject: [PATCH] Packages shouldn't have spaces in their names, but quote the values defensively. --- automated install/basic-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index db66c493..f12a0483 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -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!"