diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-12 11:48:18 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-12 11:48:18 +0200 |
commit | 69b0dbc57c7cd1e1757bcfc48c882bbfe95c476c (patch) | |
tree | 58f0b8598c39b65073a5b91f7046dc6c7f3cd098 /bin/pkg | |
parent | d10eed826ad80b3ca624146cb77524f18ac706c0 (diff) |
pkg: info, say, clear_line: Don't check for SILENT, make them no-ops when SILENT is set
Diffstat (limited to 'bin/pkg')
-rwxr-xr-x | bin/pkg | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 {} } ## |