From 94f6354c94725fddada92fe1ffdf0bfb418c67c4 Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Mon, 10 Oct 2016 07:25:43 -0700 Subject: [PATCH] Spinner blocks `set -e` trying to get it in functions that won't crash out... --- automated install/basic-install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index e9ac1cf2..fbc17174 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -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 }