Skip to content

Commit 764d980

Browse files
committed
More fixes for issue #353
1 parent 178fce6 commit 764d980

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pulledpork.pl

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## pulledpork v(whatever it says below!)
44

5-
# Copyright (C) 2009-2020 JJ Cummings, Michael Shirk and the PulledPork Team!
5+
# Copyright (C) 2009-2021 JJ Cummings, Michael Shirk and the PulledPork Team!
66

77
# This program is free software; you can redistribute it and/or
88
# modify it under the terms of the GNU General Public License
@@ -255,7 +255,7 @@ sub pulledpork {
255255
`----,\\ )
256256
`--==\\\\ / PulledPork v$VERSION - $HUMOR
257257
`--==\\\\/
258-
.-~~~~-.Y|\\\\_ Copyright (C) 2009-2020 JJ Cummings, Michael Shirk
258+
.-~~~~-.Y|\\\\_ Copyright (C) 2009-2021 JJ Cummings, Michael Shirk
259259
\@_/ / 66\\_ and the PulledPork Team!
260260
| \\ \\ _(\")
261261
\\ /-| ||'--' Rules give me wings!
@@ -702,11 +702,12 @@ sub read_rules {
702702
if (-d $path) {
703703
opendir(DIR, "$path");
704704
while (defined($file = readdir DIR)) {
705-
if (grep /^$path$file$/, @local_rules) {
705+
my $fullpath = $path.$file;
706+
if (grep /^$fullpath$/, @local_rules) {
706707
next;
707708
}
708709
else {
709-
open(DATA, "$path$file");
710+
open(DATA, "$fullpath");
710711
@elements = <DATA>;
711712
close(DATA);
712713
}

0 commit comments

Comments
 (0)