diff options
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 |