From 69b0dbc57c7cd1e1757bcfc48c882bbfe95c476c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 12 Apr 2009 11:48:18 +0200 Subject: pkg: info, say, clear_line: Don't check for SILENT, make them no-ops when SILENT is set --- bin/pkg | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bin/pkg b/bin/pkg index 5c7e971..59fd29b 100755 --- a/bin/pkg +++ b/bin/pkg @@ -40,7 +40,7 @@ function debug { alias debug='debug ${(%):-%N} ${(%):-%i}' function info { - (( SILENT )) || echo -ne "${c_info}$*${c_reset}" + echo -ne "${c_info}$*${c_reset}" } function warn { @@ -53,7 +53,7 @@ function die { } function say { - (( SILENT )) || echo $* + echo $* } function check_installed { @@ -65,7 +65,7 @@ function check_valid { } function clear_line { - (( SILENT )) || echo -ne "\r\e[2K" + echo -ne "\r\e[2K" } # Read local configuration @@ -118,6 +118,9 @@ if (( SILENT )) { # The goal is not to override anything set by the user... # So, an alias should be safer than fiddling with $MAKEFLAGS alias make='make -s' + function info {} + function say {} + function clear_line {} } ## -- cgit v1.2.3