show_progress() {
while ps -p $pid > /dev/null; do
sleep $delay
Optimization: This polls every 0.1s. Use wait with timeout instead:
while kill -0 $pid 2>/dev/null; do
# spinner logic
sleep $delay
done
show_progress() {
while ps -p $pid > /dev/null; do
sleep $delay
Optimization: This polls every 0.1s. Use wait with timeout instead:
while kill -0 $pid 2>/dev/null; do
# spinner logic
sleep $delay
done
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
show_progress() {
while ps -p $pid > /dev/null; do
sleep $delay
Optimization: This polls every 0.1s. Use wait with timeout instead:
while kill -0 $pid 2>/dev/null; do
# spinner logic
sleep $delay
done