]> gitweb.fluxo.info Git - httruta.git/commitdiff
Check if httrack is available
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 2 Aug 2015 19:18:19 +0000 (16:18 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 2 Aug 2015 19:18:19 +0000 (16:18 -0300)
lib/httracker/functions

index f9e56f12605d3051275f67903d316e7318ba0cac..56db0f62adcfbe489636a40c1c1cbe13856cb2c1 100644 (file)
@@ -151,6 +151,12 @@ function httracker_initialize {
     source $BASE/config || exit 1
   fi
 
+  # Check if httrack is available
+  if ! which httrack &> /dev/null; then
+    echo "error: httrack not avalable"
+    exit 1
+  fi
+
   # Create folders
   httracker_setup_folders