Skip to content

Commit

Permalink
wip: create dir and parents
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejol committed Apr 22, 2024
1 parent 2462e64 commit 826b58c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Ravada/VM/Void.pm
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ sub list_routes {

sub list_virtual_networks($self) {

my $dir_net = $self->dir_img."/networks/";
my $dir_net = $self->dir_img."/networks";
if (!$self->file_exists($dir_net)) {
my ($out, $err) = $self->run_command("mkdir", $dir_net);
my ($out, $err) = $self->run_command("mkdir","-p", $dir_net);
die $err if $err;
}
my @files = $self->list_files($dir_net,qr/.yml$/);
Expand Down

0 comments on commit 826b58c

Please sign in to comment.