Commit 354ecee0 authored by Leigh B Stoller's avatar Leigh B Stoller

Minor bug fix.

parent c3e7bafe
......@@ -230,8 +230,8 @@ if ($purge || $rename) {
}
}
else {
my $newname = $dirname .
"/" . $image->imagename() . ":" . $image->imageid();
my $newname = dirname($dirname) . "/" . basename($dirname) .
":" . $image->imageid();
if ($impotent) {
print "Would rename $dirname to $newname\n" if (-e $dirname);
......
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