From 9c21013c3fb3364da45e7498a7cb454f09a80fe1 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 21 Nov 2009 22:59:05 +0100 Subject: Remove fdie --- etc/functions/put | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'etc/functions/put') diff --git a/etc/functions/put b/etc/functions/put index f0be248..40e73bd 100644 --- a/etc/functions/put +++ b/etc/functions/put @@ -79,9 +79,11 @@ if [[ -f $1 ]] { } shift hosts } - fdie "Tried uploading to $n_hosts hosts without success" - ((n_ping)) && fdie " - $n_ping hosts are unreachable" - ((n_curl)) && fdie " - $n_curl errors while uploading" + echo "Tried uploading to $n_hosts hosts without success" >&2 + ((n_ping)) && echo " - $n_ping hosts are unreachable" >&2 + ((n_curl)) && echo " - $n_curl errors while uploading" >&2 + return 1 } else { - fdie "$1: No such file" + echo "$1: No such file" + return 1 } -- cgit v1.2.3