aboutsummaryrefslogtreecommitdiff
path: root/lib/httracker/functions
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-08-02 16:18:19 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-08-02 16:18:19 -0300
commite6afb5bcb9a73b4583386b3320e47d3025eb7930 (patch)
tree8645350532b216ddf6d4890b7d65789b50847b06 /lib/httracker/functions
parent984803ceb03810b5eddcc8792bf41b7ed35857f2 (diff)
downloadhttruta-e6afb5bcb9a73b4583386b3320e47d3025eb7930.tar.gz
httruta-e6afb5bcb9a73b4583386b3320e47d3025eb7930.tar.bz2
Check if httrack is available
Diffstat (limited to 'lib/httracker/functions')
-rw-r--r--lib/httracker/functions6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/httracker/functions b/lib/httracker/functions
index f9e56f1..56db0f6 100644
--- a/lib/httracker/functions
+++ b/lib/httracker/functions
@@ -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