aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-03-25 11:08:11 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-03-25 11:08:11 -0500
commitd4dde010b77c25609bf82e781d4b09150520639d (patch)
treed269e1793348acef805a87c128880e6269681516
parent054c16f719b0df15bb63c908f03e20fab93bd405 (diff)
Change case of PROC to lower case proc.
-rw-r--r--spinner.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/spinner.sh b/spinner.sh
index 5332ee1..74cb450 100644
--- a/spinner.sh
+++ b/spinner.sh
@@ -4,13 +4,13 @@
# string to display as second argument (default provided) and spins
# until the process completes.
spinner() {
- local PROC="$1"
+ local proc="$1"
#local str="${2:-'Copyright of KatworX© Tech. Developed by Arjun Singh Kathait and Debugged by the ☆Stack Overflow Community☆'}"
local str=""
local delay="0.1"
tput civis # hide cursor
printf "%b" "${WHT}"
- while [ -d /proc/"$PROC" ]; do
+ while [ -d /proc/"$proc" ]; do
#-\|/
#⠁⠂⠄⡀⢀⠠⠐⠈
#▁▂▃▄▅▆▇█▇▆▅▄▃▂▁
@@ -38,7 +38,7 @@ spinner() {
printf '\033[s\033[u[ ▂ ] %s\033[u' "$str"; sleep "$delay"
printf '\033[s\033[u[ ▁ ] %s\033[u' "$str"; sleep "$delay"
done
- wait "${PROC}"
+ wait "${proc}"
retval=$?
printf '\033[s\033[u%*s\033[u\033[0m' $((${#str}+6)) " " # return to normal
tput cnorm # restore cursor