From a9998650875c122d505c3046b23dc5f8590857f7 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Tue, 23 Mar 2021 14:04:35 -0500 Subject: Use printf instead of echo. --- spinner.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spinner.sh') diff --git a/spinner.sh b/spinner.sh index 83fc536..5332ee1 100644 --- a/spinner.sh +++ b/spinner.sh @@ -9,7 +9,7 @@ spinner() { local str="" local delay="0.1" tput civis # hide cursor - echo -ne "${WHT}" + printf "%b" "${WHT}" while [ -d /proc/"$PROC" ]; do #-\|/ #⠁⠂⠄⡀⢀⠠⠐⠈ -- cgit v1.2.3-54-g00ecf