diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-01-20 22:50:19 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-01-20 22:50:19 +0100 |
commit | 0413fcd8c5e5a6d324c943663f4ca165554fe6e5 (patch) | |
tree | 4c2863206057c6110071bde4aa6bde1d5a2f6ab7 /etc/functions | |
parent | 90c76f41d353f589f861f9af9cb80b35dffca74d (diff) |
put: Only show error message if at least one host caused it
Diffstat (limited to 'etc/functions')
-rwxr-xr-x | etc/functions/put | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/functions/put b/etc/functions/put index a8b85d9..7c0354a 100755 --- a/etc/functions/put +++ b/etc/functions/put @@ -82,9 +82,9 @@ if [[ -f $1 ]] { } shift hosts } - fdie "Tried uploading to $n_hosts hosts without success\n" \ - " - $n_ping hosts are unreachable\n" \ - " - $n_curl errors while uploading" + 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" } else { fdie "$1: No such file" } |