Commit 5dcc4cc4 authored by Mike Hibler's avatar Mike Hibler
Browse files

Nit: remove empty directories rather than moving them out of the way.

parent 5446760e
......@@ -264,7 +264,12 @@ sub doboot()
unlink($local);
}
# Otherwise if it exists, move it out of the way.
# If it is an empty directory, remove it
if (-d "$local") {
rmdir($local);
}
# If it still exists, move it out of the way.
if (-e "$local") {
my $bak = "$local.$PID.bak";
if (-e "$bak" || !rename($local, $bak)) {
......
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