]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/biostat
fixed up assemble_seq_velvet
[biopieces.git] / bp_bin / biostat
index 175d6fd5c1d9b75e6dedab1cffed0969ebfba0ff..c0b7c13971ba1c938dcc11650918954dd8a5eef5 100755 (executable)
@@ -163,10 +163,13 @@ sub get_status_info
 
     my ( $fh, $line, $time, $args, $tmp_dir, $du );
 
-    $fh = Maasha::Filesys::file_read_open( $file );
-    flock($fh, 1);
-    $line = <$fh>;
-    close $fh;
+    if (-e $file)
+    {
+        $fh = Maasha::Filesys::file_read_open( $file );
+        flock($fh, 1);
+        $line = <$fh>;
+        close $fh;
+    }
 
     chomp $line;