aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2016-04-07 09:52:38 +0200
committerPetter Reinholdtsen <pere@hungry.com>2016-04-07 09:52:38 +0200
commitbab894c405983ad4754a063e60a59229e0f3432c (patch)
tree1177fbf9423905ba81fdcee52059cd83225ad968
parentbc1d32c5f586589f42a1f255e4da54a430b28aa0 (diff)
Avoid hardcoding directory names.
-rwxr-xr-xbin/run-daily2
-rwxr-xr-xbin/run-hourly2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/run-daily b/bin/run-daily
index a70cb95..e362e3a 100755
--- a/bin/run-daily
+++ b/bin/run-daily
@@ -1,6 +1,6 @@
#!/bin/sh
-cd /srv/scraper/postjournaler
+cd $(dirname $0)/..
for scraper in $(grep '# Run: daily' scrapersources/*|cut -d: -f1|cut -d/ -f2); do
echo
diff --git a/bin/run-hourly b/bin/run-hourly
index bdff6bb..337df2b 100755
--- a/bin/run-hourly
+++ b/bin/run-hourly
@@ -1,6 +1,6 @@
#!/bin/sh
-cd /srv/scraper/postjournaler
+cd $(dirname $0)/..
for scraper in $(grep '# Run: hourly' scrapersources/*|cut -d: -f1|cut -d/ -f2); do
echo