aboutsummaryrefslogtreecommitdiffstats
path: root/packageinstall.sh
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-01 12:14:20 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-01 12:14:20 -0500
commit0f7d778bfe357bd031249165d69561a5f92a0d8a (patch)
treeb84f7f9a76e402600a5e30dde2944861b53fcada /packageinstall.sh
parent8940fe90af138d23df464bf967a77b0285c79e90 (diff)
Adjust function spinner to take in a spinner type. If no type is defined then random will be chosen. Pass the 2nd argument as spinnertype when spinner is invoked. Cleanup some extraction text and reset the colors at the end.
Diffstat (limited to 'packageinstall.sh')
-rw-r--r--packageinstall.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/packageinstall.sh b/packageinstall.sh
index 5105fbb..afd11a0 100644
--- a/packageinstall.sh
+++ b/packageinstall.sh
@@ -16,9 +16,9 @@ else
# Remove existing if exists
rm -rf "${DIRNAME}"
- printf "%b" "${IBLU}Extracting ${YLW}${CACHEFILE}... "
+ printf "%b" "${IBLU}Extracting ${YLW}${CACHEFILE}... ${RST}"
tar xf "${CACHEFILE}" > /dev/null 2>&1 & pid=$!
- spinner "$pid"
+ spinner "$pid" "${SPINNER}"
retval=$?
if [ "$retval" -ne 0 ]; then
printf "%b" "${GRN}Extraction ${RED}FAILED!${RST}\n"
@@ -33,7 +33,7 @@ else
mkdir -p "${LFS}/sources/log/chapter${CHAPTER}/"
source "${LFS}/sources/chapter${CHAPTER}/${PACKAGE}.sh" 2>&1 > "${LFS}/sources/log/chapter${CHAPTER}/${PACKAGE}.log" 2>&1 & pid=$!
- spinner "$pid"
+ spinner "$pid" "${SPINNER}"
retval=$?
if [ "$retval" -ne 0 ]; then
printf "%b" "${RED}FAILED!${RST}\n"