]> gitweb.fluxo.info Git - utils-tor.git/commitdiff
Check if syncthing is installed
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 11 Jul 2018 14:04:38 +0000 (11:04 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 11 Jul 2018 14:04:38 +0000 (11:04 -0300)
syncthing-tor

index 1339532f031244befe16dcd2ad136bbd8eaef467..04a5f9280ca9aab1551c7f7de366d1c60b67914f 100755 (executable)
@@ -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