Browse Source

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

master
Harald Hoyer 11 years ago
parent
commit
e84af01462
  1. 4
      modules.d/45url-lib/url-lib.sh

4
modules.d/45url-lib/url-lib.sh

@ -110,7 +110,9 @@ ctorrent_fetch_url() { @@ -110,7 +110,9 @@ ctorrent_fetch_url() {
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 ##############################################################


Loading…
Cancel
Save