]> git.ipfire.org Git - thirdparty/grsecurity-scrape.git/commitdiff
change dir to script_dir.
authorPiotr Karbowski <piotr.karbowski@gmail.com>
Mon, 23 Sep 2013 15:14:47 +0000 (17:14 +0200)
committerPiotr Karbowski <piotr.karbowski@gmail.com>
Mon, 23 Sep 2013 15:15:59 +0000 (17:15 +0200)
scrape.pl

index 3b440657598688817851e8acbfb9cfb3a0d9c401..5985d307dc3908e6db916f95811b517399ed6adb 100755 (executable)
--- a/scrape.pl
+++ b/scrape.pl
@@ -8,7 +8,7 @@ use File::Basename 'dirname', 'basename';
 use Cwd 'abs_path';
 
 my $script_dir = abs_path(dirname(__FILE__));
-
+chdir($script_dir);
 my $feed_raw = get("https://grsecurity.net/testing_rss.php");
 
 my $feed = XMLin($feed_raw, ForceArray => ['item']);