summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-04-12 11:48:18 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-04-12 11:48:18 +0200
commit69b0dbc57c7cd1e1757bcfc48c882bbfe95c476c (patch)
tree58f0b8598c39b65073a5b91f7046dc6c7f3cd098 /bin/pkg
parentd10eed826ad80b3ca624146cb77524f18ac706c0 (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-xbin/pkg9
1 files 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 {}
}
##