url-lib: check for ctorrent binary before adding the url handler

master
Harald Hoyer 2014-08-15 17:35:11 +02:00
parent 338bad6393
commit e84af01462
1 changed files with 3 additions and 1 deletions

View File

@ -110,7 +110,9 @@ ctorrent_fetch_url() {
fi fi
if [ -z "$2" ]; then echo "$outloc" ; fi if [ -z "$2" ]; then echo "$outloc" ; fi
} }
add_url_handler ctorrent_fetch_url torrent
command -v ctorrent >/dev/null \
&& add_url_handler ctorrent_fetch_url torrent


### NFS ############################################################## ### NFS ##############################################################