diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2016-04-07 09:52:38 +0200 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2016-04-07 09:52:38 +0200 |
commit | bab894c405983ad4754a063e60a59229e0f3432c (patch) | |
tree | 1177fbf9423905ba81fdcee52059cd83225ad968 | |
parent | bc1d32c5f586589f42a1f255e4da54a430b28aa0 (diff) |
Avoid hardcoding directory names.
-rwxr-xr-x | bin/run-daily | 2 | ||||
-rwxr-xr-x | bin/run-hourly | 2 |
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 |