From aabaaa3cbdc8078311e7e1e2c0446eb91e9217ba Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 23 Oct 2008 10:32:46 +0200 Subject: bin/pkg: Improved SILENT a bit --- bin/pkg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin/pkg') diff --git a/bin/pkg b/bin/pkg index 5d5c22c..57e840f 100755 --- a/bin/pkg +++ b/bin/pkg @@ -50,7 +50,7 @@ function check_valid { } function clear_line { - echo -ne "\r\e[2K" + (( SILENT )) || echo -ne "\r\e[2K" } # Read local configuration @@ -133,6 +133,7 @@ function confirm_no { ## function progress { + (( SILENT )) && return current=$1 max=$2 desc=$3 @@ -151,7 +152,7 @@ function progress { item $c '=' item $a ' ' output+="] $currentper% $desc2" - (( SILENT )) || echo -ne $output + echo -ne $output } ## VCS Wrappers -- cgit v1.2.3