Skip to content

Commit

Permalink
Added animation
Browse files Browse the repository at this point in the history
  • Loading branch information
grakshith committed Nov 1, 2016
1 parent 2b12884 commit 8097d00
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions wait.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#! /bin/bash

spin='-\|/'

i=0
while kill -0 $1 2>/dev/null
do
i=$(( (i+1) %4 ))
printf "\r${spin:$i:1}"
sleep .1
done
printf "\r"
echo ""

0 comments on commit 8097d00

Please sign in to comment.