From 37a43b49b53dd679eea0f59248498e2b88da6ccb Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 11 Jul 2018 11:04:38 -0300 Subject: Check if syncthing is installed --- syncthing-tor | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 -- cgit v1.2.3