mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-29 01:23:18 +00:00
Packages shouldn't have spaces in their names, but quote the values defensively.
This commit is contained in:
parent
7704bcd5e3
commit
fc9468dec5
1 changed files with 2 additions and 2 deletions
|
@ -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!"
|
||||
|
|
Loading…
Reference in a new issue