summaryrefslogtreecommitdiff
path: root/etc/functions/put
diff options
context:
space:
mode:
Diffstat (limited to 'etc/functions/put')
-rw-r--r--etc/functions/put2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/functions/put b/etc/functions/put
index 40e73bd..bf512c1 100644
--- a/etc/functions/put
+++ b/etc/functions/put
@@ -11,7 +11,7 @@ typeset target_dir server_prefix
typeset file remote_file illegal
typeset -i n_hosts n_ping n_curl
-if ! check_com curl; then
+if [[ -z $commands[curl] ]]; then
function curl {return 0}
warn "curl not present, won't be able to check upload success"
fi