( $time0, $args, $tmp_dir ) = split /;/, $line;
- Maasha::Filesys::dir_remove( $tmp_dir );
+ Maasha::Filesys::dir_remove( $tmp_dir ) if defined $tmp_dir;
$elap = Maasha::Common::time_stamp_diff( $time0, $time1 );
- $fh_global = Maasha::Filesys::file_append_open( "$ENV{ 'BP_LOG' }/biopieces.log" );
- $fh_local = Maasha::Filesys::file_append_open( "$ENV{ 'HOME' }/.biopieces.log" );
+ $fh_global = Maasha::Filesys::file_append_open( "$ENV{ 'BP_LOG' }/biopieces.log" );
+ $fh_local = Maasha::Filesys::file_append_open( "$ENV{ 'HOME' }/.biopieces.log" );
print $fh_global join( "\t", $time0, $time1, $elap, $user, $status, "$script $args" ) . "\n";
print $fh_local join( "\t", $time0, $time1, $elap, $user, $status, "$script $args" ) . "\n";