diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-02-13 12:11:57 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-02-13 12:11:57 +0100 |
commit | f77734447c2af100240561996a6cf833f3dca089 (patch) | |
tree | abf6b0f273795cb4c61d1496f0b057dd14197784 /etc/functions | |
parent | 76ef6921820d46fef0ca302931ba99d15544d403 (diff) |
Don't use die/warn/info, they'll probably be removed some time
Diffstat (limited to 'etc/functions')
-rw-r--r-- | etc/functions/off | 2 | ||||
-rw-r--r-- | etc/functions/put | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/etc/functions/off b/etc/functions/off index 36e5aeb..1edd2d8 100644 --- a/etc/functions/off +++ b/etc/functions/off @@ -40,7 +40,7 @@ while [[ $1 == -* ]] { # Don't shut down a server too easily if [[ $force != 1 && $hosts[$HOST] == *:server:* ]] { - warn "This seems to be a server... not shutting down" + print -P '%B%F{yellow}This seems to be a server... not shutting down%f%b' echo "Use 'off --force' if you really mean it" return 1 } diff --git a/etc/functions/put b/etc/functions/put index bf512c1..556d50b 100644 --- a/etc/functions/put +++ b/etc/functions/put @@ -13,7 +13,7 @@ typeset -i n_hosts n_ping n_curl if [[ -z $commands[curl] ]]; then function curl {return 0} - warn "curl not present, won't be able to check upload success" + print -P "%B%F{yellow}curl not present, won't be able to check upload success%f%b" fi function put_aneurysm_vpn { |