fixed "rm tmptmp" of notexisting file in compinfo.c
[unres.git] / source / unres / src_MD / compinfo.c
index 7e2b9cf..177dbd3 100644 (file)
@@ -26,10 +26,11 @@ fprintf(out,"      write(iout,*)'++++ Compile info ++++'\n");
 fprintf(out,"      write(iout,*)'Version %d.%-d build %d'\n",iv1,iv2,iv3);
 uname(&Name);
 time(&Tp);
-system("rm tmptmp; whoami > tmptmp");
+system("whoami > tmptmp");
 in1=fopen("tmptmp","r");
 fscanf(in1,"%s",buf1);
 fclose(in1);
+system("rm tmptmp");
 p1=ctime(&Tp);
 p1[strlen(p1)-1]='\0';
 fprintf(out,"      write(iout,*)'compiled %s'\n",p1);