diff options
Diffstat (limited to 'etc')
-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" } |