Commit b7c7d845 authored by Leigh B Stoller's avatar Leigh B Stoller

Minor fix to previous revision.

parent 36d11bf7
......@@ -411,8 +411,10 @@ foreach my $token (@userlist) {
or fatal("Could not chown home dir to $uid:$project");
foreach my $dot (@dots) {
system("$CHOWN -R $uid:$project $homedir/$dot") == 0
or fatal("Could not chown $homedir/$dot to $uid:$project");
if (-e "$homedir/$dot") {
system("$CHOWN -R $uid:$project $homedir/$dot") == 0
or fatal("Could not chown $homedir/$dot to $uid:$project");
}
}
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment