close $fh_tmp;
if ( $options->{ 'verbose' } ) {
- Maasha::Common::run( "mkvtree", "-db $file_tmp -$type -pl -allout -indexname $options->{ 'index_name' }" );
+ Maasha::Common::run( "mkvtree", "-db $file_tmp -" . ( lc $type ) . " -pl -allout -indexname $options->{ 'index_name' }" );
} else {
- Maasha::Common::run( "mkvtree", "-db $file_tmp -$type -pl -allout -indexname $options->{ 'index_name' } > /dev/null 2>&1" );
+ Maasha::Common::run( "mkvtree", "-db $file_tmp -" . ( lc $type ) . " -pl -allout -indexname $options->{ 'index_name' } > /dev/null 2>&1" );
}
unlink $file_tmp;