diff options
-rw-r--r-- | spinner.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -15,11 +15,11 @@ spinner() { printf '\033[s\033[u[ \ ] %s\033[u' "$str"; sleep "$delay" printf '\033[s\033[u[ | ] %s\033[u' "$str"; sleep "$delay" done - wait $PROC + wait ${PROC} retval=$? printf '\033[s\033[u%*s\033[u\033[0m' $((${#str}+6)) " " # return to normal tput cnorm # restore cursor - return 0 + return $retval } export -f spinner
\ No newline at end of file |