Is it possible to create a custom spinner? I have the following in a script
#!/bin/bash
show_spinner()
{
local -r pid="${1}"
local -r delay='0.3'
local spinstr='\|/-'
local temp
while ps a | awk '{print $1}' | grep -q "${pid}"; do
temp="${spinstr#?}"
printf " %c " "${spinstr}"
spinstr=${temp}${spinstr%"${temp}"}
sleep "${delay}"
printf "\b\b\b\b\b\b"
done
printf " \b\b\b\b"
}
("$@") &
show_spinner "$!"
When I parse the command locally it runs, however on circle-ci in the step where the script runs, the default circle-ci spinner is the one that shows up.