Skip to content

Commit

Permalink
Removing spaces from spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdehaven committed Jul 30, 2021
1 parent 9109653 commit 7c01c8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fetchurls.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

VERSION="v3.3.0"
VERSION="v3.3.1"

# Set Defaults
WGET_INSTALLED=0
Expand Down Expand Up @@ -333,12 +333,12 @@ displaySpinner()
local spinstr='|/-\'
while [ "$(ps a | awk '{print $1}' | grep $pid)" ]; do
local temp=${spinstr#?}
printf "${COLOR_RESET}${COLOR_CYAN}Please wait... [ %c ] " "$spinstr${COLOR_RESET}" # Count number of backspaces needed (A = 25)
printf "${COLOR_RESET}${COLOR_CYAN}Please wait... [%c] " "$spinstr${COLOR_RESET}" # Count number of backspaces needed (A = 23)
local spinstr=$temp${spinstr%"$temp"}
sleep $delay
printf "\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b" # Number of backspaces from (A)
printf "\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b" # Number of backspaces from (A)
done
printf " \b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b" # Number of spaces, then backspaces from (A)
printf " \b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b" # Number of spaces, then backspaces from (A)
}

fetchUrlsForDomain() {
Expand Down

0 comments on commit 7c01c8b

Please sign in to comment.