forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3234 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
12ae035b63
commit
fffa083cda
|
@ -36,9 +36,11 @@ void Shell::command(int narg, char **arg)
|
|||
|
||||
} else if (strcmp(arg[0],"mkdir") == 0) {
|
||||
if (narg < 2) error->all("Illegal shell command");
|
||||
#ifndef WINDOWS
|
||||
if (comm->me == 0)
|
||||
for (int i = 1; i < narg; i++)
|
||||
mkdir(arg[i], S_IRWXU | S_IRGRP | S_IXGRP);
|
||||
#endif
|
||||
|
||||
} else if (strcmp(arg[0],"mv") == 0) {
|
||||
if (narg != 3) error->all("Illegal shell command");
|
||||
|
|
Loading…
Reference in New Issue