mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 06:10:20 +00:00
Don't call for package installs if there are no packages to install.
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
parent
f458780ba7
commit
7eb6124721
1 changed files with 7 additions and 1 deletions
|
@ -757,7 +757,10 @@ install_dependent_packages() {
|
||||||
installArray+=("${i}")
|
installArray+=("${i}")
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [[ ${#installArray[@]} -gt 0 ]]; then
|
||||||
debconf-apt-progress -- ${PKG_INSTALL} "${installArray[@]}"
|
debconf-apt-progress -- ${PKG_INSTALL} "${installArray[@]}"
|
||||||
|
return
|
||||||
|
fi
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -771,7 +774,10 @@ install_dependent_packages() {
|
||||||
installArray+=("${i}")
|
installArray+=("${i}")
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [[ ${#installArray[@]} -gt 0 ]]; then
|
||||||
${PKG_INSTALL} "${installArray[@]}" &> /dev/null
|
${PKG_INSTALL} "${installArray[@]}" &> /dev/null
|
||||||
|
return
|
||||||
|
fi
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue