git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3234 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2009-10-27 14:33:19 +00:00
parent 12ae035b63
commit fffa083cda
1 changed files with 2 additions and 0 deletions

View File

@ -36,9 +36,11 @@ void Shell::command(int narg, char **arg)
} else if (strcmp(arg[0],"mkdir") == 0) { } else if (strcmp(arg[0],"mkdir") == 0) {
if (narg < 2) error->all("Illegal shell command"); if (narg < 2) error->all("Illegal shell command");
#ifndef WINDOWS
if (comm->me == 0) if (comm->me == 0)
for (int i = 1; i < narg; i++) for (int i = 1; i < narg; i++)
mkdir(arg[i], S_IRWXU | S_IRGRP | S_IXGRP); mkdir(arg[i], S_IRWXU | S_IRGRP | S_IXGRP);
#endif
} else if (strcmp(arg[0],"mv") == 0) { } else if (strcmp(arg[0],"mv") == 0) {
if (narg != 3) error->all("Illegal shell command"); if (narg != 3) error->all("Illegal shell command");