1
0
mirror of synced 2026-01-25 19:36:27 +00:00

Test for $CONFIG{dontformat} just once

This commit is contained in:
Axel Beckert
2012-05-30 23:39:24 +02:00
parent 953c692b54
commit e727fbbbbd

View File

@@ -3426,15 +3426,17 @@ sub createFilesystem
exit 127;
}
#
# OK we have the command and the filesystem. Create it.
#
logprint("\nCreating $fs filesystem on $image\n") unless ( $CONFIG{ 'dontformat' } );
unless ( $CONFIG{ 'dontformat' } ) {
#
# OK we have the command and the filesystem. Create it.
#
logprint("\nCreating $fs filesystem on $image\n");
$command .= " " . $image;
$command .= " " . $image;
runCommand($command) unless ( $CONFIG{ 'dontformat' } );
logprint("Done\n") unless ( $CONFIG{ 'dontformat' } );
runCommand($command);
logprint("Done\n");
}
}