Skip to content

Commit 178fce6

Browse files
committed
Fix path issue #353 on Windows
1 parent 3054bfc commit 178fce6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pulledpork.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1715,7 +1715,7 @@ sub get_ignore_files {
17151715
## Verify if directories or files actually exist
17161716
sub check_file_dir {
17171717
my ($filedir_input) = @_;
1718-
my ($dir_check, $file_check) = ($filedir_input =~ /(^.*)\/(.*)$/);
1718+
my ($dir_check, $file_check) = ($filedir_input =~ /(^.*)(?:\/|\\)(.*)$/);
17191719
if (!-d $dir_check && !-w $file_check) {
17201720
croak
17211721
"Error: $dir_check does not exist, please create this directory\n";

0 commit comments

Comments
 (0)