From 5a4d0eb1dbadbc154532a12bbe7292bcb83015ea Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Fri, 4 Oct 2024 02:15:33 -0400 Subject: [PATCH] Update plugins/progress/progress.plugin.sh Co-authored-by: Koichi Murase --- plugins/progress/progress.plugin.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/plugins/progress/progress.plugin.sh b/plugins/progress/progress.plugin.sh index 885350c5f..4c7eaadae 100644 --- a/plugins/progress/progress.plugin.sh +++ b/plugins/progress/progress.plugin.sh @@ -57,15 +57,7 @@ function progress() # Get a clear line escape sequence local clear_line - if _omb_util_command_exists 'tput'; then - clear_line=$(tput el) - if [ -z $clear_line ]; then - clear_line=$(tput el1) - if [ -z $clear_line ]; then - clear_line=$(tput ce) - fi - fi - fi + clear_line=$(tput el 2>/dev/null || tput ce 2>/dev/null) if [ -z $clear_line ]; then clear_line=$'\e[K' fi