Skip to content
Snippets Groups Projects
Commit a18b188f authored by Jens Steidl's avatar Jens Steidl :baby_chick:
Browse files

- fix: dir creation failed on paths with multiple directories

parent 094d8ec5
No related branches found
No related tags found
No related merge requests found
......@@ -435,7 +435,11 @@ PATCH
my $path = $_[0];
if(! -d $path && ! -f $path){
mkdir($path) or die "Could not mkdir $path: $!";
eval { path($path)->mkpath; };
if ($@) { # error
print_scalar_data("", "ERROR: Failed to create directory '$path'.", "", "red");
die $@;
}
}
return 1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment