aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-08-27 13:21:55 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-08-27 13:21:55 -0300
commitf7e6767cd679ae6c40dd40f5d20889df92ae8ca1 (patch)
tree5b8849d3420aba5e101c69138809139246cafeaa /lib
parent07f5b921710a61cd91532e021d028f845d96cfd3 (diff)
downloadhttruta-f7e6767cd679ae6c40dd40f5d20889df92ae8ca1.tar.gz
httruta-f7e6767cd679ae6c40dd40f5d20889df92ae8ca1.tar.bz2
Setting BASE
Diffstat (limited to 'lib')
-rw-r--r--lib/httracker/functions5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/httracker/functions b/lib/httracker/functions
index 6e5c81b..f2dde7f 100644
--- a/lib/httracker/functions
+++ b/lib/httracker/functions
@@ -101,7 +101,7 @@ function httracker_sqlquery {
function httracker_iterate {
for link in `cat $URLS | xargs`; do
# Fix entities
- link="`echo $link | `dirname $0`/lib/httracker/html.sed`"
+ link="`echo $link | $BASE/lib/httracker/html.sed`"
httracker_get "$link"
done
}
@@ -118,7 +118,8 @@ function httracker_setup_folders {
# Set basic environment
function httracker_initialize {
- source `dirname $0`/config || exit 1
+ BASE="`dirname $0`"
+ source $BASE/config || exit 1
# Create folders
httracker_setup_folders