summaryrefslogtreecommitdiff
path: root/etc/functions/put
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-11-21 23:20:29 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-11-21 23:20:29 +0100
commitec6c924f8791926693a515524b27eb805be50f63 (patch)
tree2018e2599e767adcbf81f021060e1daa4d0dc355 /etc/functions/put
parente7ad146b035856a747781fa4fb823a24aa3f5842 (diff)
Remove check_com function
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