From 276f6060d530e8e0f3fc63de9da7a08085eb7ad7 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Thu, 18 Mar 2021 17:02:20 -0500 Subject: Add spinner when extracting source. --- packageinstall.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packageinstall.sh b/packageinstall.sh index bb6d230..97b1764 100644 --- a/packageinstall.sh +++ b/packageinstall.sh @@ -18,8 +18,9 @@ else fi mkdir -p "${DIRNAME}" - echo -e "${BLU}Extracting ${YLW}${CACHEFILE}" - tar -xf "${CACHEFILE}" -C "${DIRNAME}" + echo -ne "${BLU}Extracting ${YLW}${CACHEFILE}... " + tar -xf "${CACHEFILE}" -C "${DIRNAME}" & pid=$! + spinner "$pid" #TOPLEVELDIR = "tar -tf ${CACHEFILE} | sed -e 's@/.*@@' | uniq" pushd "${DIRNAME}" > /dev/null -- cgit v1.2.3-54-g00ecf