From f77734447c2af100240561996a6cf833f3dca089 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 13 Feb 2010 12:11:57 +0100 Subject: Don't use die/warn/info, they'll probably be removed some time --- etc/functions/off | 2 +- etc/functions/put | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/functions') 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 { -- cgit v1.2.3