From 4dae507f4c79948c4535e91b8c28bbdecde10014 Mon Sep 17 00:00:00 2001 From: LloydAsp <131958103+LloydAsp@users.noreply.github.com> Date: Mon, 17 Mar 2025 16:09:12 +0800 Subject: [PATCH] Update net.sh redirect progress infomation to stderr --- net.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net.sh b/net.sh index 68bea86..32d445a 100644 --- a/net.sh +++ b/net.sh @@ -314,6 +314,9 @@ stail[today]=$(cat "$count_file"|tail -3|head -n 1|awk '{print $5}') stail[total]=$(cat "$count_file"|tail -3|head -n 1|awk '{print $7}') } show_progress_bar(){ +show_progress_bar_ "$@" 1>&2 +} +show_progress_bar_(){ local bar="\u280B\u2819\u2839\u2838\u283C\u2834\u2826\u2827\u2807\u280F" local n=${#bar} while sleep 0.1;do