diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-11-21 22:59:05 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-11-21 22:59:05 +0100 |
commit | 9c21013c3fb3364da45e7498a7cb454f09a80fe1 (patch) | |
tree | aea96ffeb79bd414c38879588fd0f2b5c5e9df41 /etc/functions/put | |
parent | 6fb789d1006fb57055d4d734380da4b68cb5f9b9 (diff) |
Remove fdie
Diffstat (limited to 'etc/functions/put')
-rw-r--r-- | etc/functions/put | 10 |
1 files changed, 6 insertions, 4 deletions
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 } |