Skip to content

Commit

Permalink
fix: style in build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Jul 13, 2024
1 parent 31d61a9 commit ec6487d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,10 @@ function generate_checksum() {
function spinner() {
local pid=$1
local delay=0.1
local spinstr='|/-\'
local spinstr="|/-\\"
tput civis # Hide the cursor
printf "\r[%c] " " "
# shellcheck disable=SC2143
while [ "$(ps a | awk '{print $1}' | grep $pid)" ]; do
while kill -0 $pid 2>/dev/null; do
local temp=${spinstr#?}
printf "\r [%c] " "$spinstr"
local spinstr=$temp${spinstr%"$temp"}
Expand Down

0 comments on commit ec6487d

Please sign in to comment.