From: Silvio Rhatto Date: Wed, 11 Jul 2018 14:04:38 +0000 (-0300) Subject: Check if syncthing is installed X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=37a43b49b53dd679eea0f59248498e2b88da6ccb;p=utils-tor.git Check if syncthing is installed --- diff --git a/syncthing-tor b/syncthing-tor index 1339532..04a5f92 100755 --- a/syncthing-tor +++ b/syncthing-tor @@ -4,5 +4,10 @@ # # See https://docs.syncthing.net/users/proxying.html -export all_proxy=socks5://127.0.0.1:9050 -syncthing +if which syncthing 2> /dev/null; then + export all_proxy=socks5://127.0.0.1:9050 + syncthing +else + echo "error: syncthing not installed" + exit 1 +fi