diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-07-11 11:04:38 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-07-11 11:04:38 -0300 |
commit | 37a43b49b53dd679eea0f59248498e2b88da6ccb (patch) | |
tree | 21b473b042fc9c601359ae3928b143e5948f40de /syncthing-tor | |
parent | 41876d865c7c4b6a21df1fcf2981cbe3048c14f5 (diff) | |
download | utils-tor-37a43b49b53dd679eea0f59248498e2b88da6ccb.tar.gz utils-tor-37a43b49b53dd679eea0f59248498e2b88da6ccb.tar.bz2 |
Check if syncthing is installed
Diffstat (limited to 'syncthing-tor')
-rwxr-xr-x | syncthing-tor | 9 |
1 files 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 |