mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-23 21:30:17 +00:00
Spinner blocks set -e
trying to get it in functions that won't crash out...
This commit is contained in:
parent
b79059ebdb
commit
94f6354c94
1 changed files with 3 additions and 2 deletions
|
@ -626,7 +626,7 @@ update_pacakge_cache() {
|
|||
#update package lists
|
||||
echo ":::"
|
||||
echo -n "::: $PKG_MANAGER update has not been run today. Running now..."
|
||||
${UPDATE_PKG_CACHE} > /dev/null 2>&1
|
||||
${UPDATE_PKG_CACHE} &> /dev/null & spinner $!
|
||||
echo " done!"
|
||||
fi
|
||||
}
|
||||
|
@ -650,11 +650,12 @@ notify_package_updates_available(){
|
|||
|
||||
install_dependent_packages(){
|
||||
# Install packages passed in via argument array
|
||||
# No spinner - conflicts with set -e
|
||||
declare -a argArray1=("${!1}")
|
||||
|
||||
for i in "${argArray1[@]}"; do
|
||||
echo -n "::: Checking for $i..."
|
||||
package_check_install "${i}" &> /dev/null & spinner $!
|
||||
package_check_install "${i}" &> /dev/null
|
||||
echo " installed!"
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue