Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
darshan
darshan
Commits
00519200
Commit
00519200
authored
Dec 01, 2020
by
Philip Carns
Browse files
improve error msg if mk-log-dirs fails
parent
583afaa1
Changes
1
Hide whitespace changes
Inline
Side-by-side
darshan-runtime/darshan-mk-log-dirs.pl.in
View file @
00519200
...
...
@@ -25,7 +25,12 @@ umask(0);
# go through the end of next year
for
(
$i
=
$year
;
$i
<
(
$year
+
2
);
$i
++
)
{
mkdir
("
$LOGDIR
/
$i
",
0755
)
or
die
("
Error: could not mkdir
$LOGDIR
/
$i
.
\n
");
if
(
!
mkdir
("
$LOGDIR
/
$i
",
0755
))
{
print
STDERR
"
Error: mkdir(
$LOGDIR
/
$i
): $!.
\n
";
print
STDERR
"
Error: please make sure that the
$LOGDIR
directory already exists and is writeable.
\n
";
exit
(
1
);
}
for
(
$j
=
1
;
$j
<
13
;
$j
++
)
{
mkdir
("
$LOGDIR
/
$i
/
$j
",
0755
)
or
die
("
Error: could not mkdir
$LOGDIR
/
$i
/
$j
.
\n
");
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment