diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-08-27 13:21:55 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-08-27 13:21:55 -0300 |
commit | f7e6767cd679ae6c40dd40f5d20889df92ae8ca1 (patch) | |
tree | 5b8849d3420aba5e101c69138809139246cafeaa /lib/httracker/functions | |
parent | 07f5b921710a61cd91532e021d028f845d96cfd3 (diff) | |
download | httruta-f7e6767cd679ae6c40dd40f5d20889df92ae8ca1.tar.gz httruta-f7e6767cd679ae6c40dd40f5d20889df92ae8ca1.tar.bz2 |
Setting BASE
Diffstat (limited to 'lib/httracker/functions')
-rw-r--r-- | lib/httracker/functions | 5 |
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 |