diff --git a/bin/primus_kickoff7.pl b/bin/primus_kickoff7.pl index 56b5cfb..c6867b7 100755 --- a/bin/primus_kickoff7.pl +++ b/bin/primus_kickoff7.pl @@ -117,6 +117,14 @@ ## Process command line options. apply_options(); + +if(-d $output_dir) # The output directory exist we are going to rename +{ + system("mv $output_dir $output_dir\_OLD"); +} +# Then we need to create the direcotry to output to +make_path($output_dir) if !-d $output_dir; + open($LOG,">$log_file") if($LOG eq ""); print $LOG "Commandline options used: @commandline_options\n";