Commit 9f05de20 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor bug fix.

parent 8c6af85e
......@@ -385,8 +385,13 @@ sub BackUpFileFatal($)
PhaseFail("$filename does not exist")
if (! -e $filename);
PhaseFail("$filename already exists")
if (-e $backup);
if (-e $backup) {
$backup = $filename . "-" . time();
PhaseFail("$backup already exists")
if (-e $backup);
ExecQuietFatal("/bin/cp -p $filename $backup")
if (!$impotent);
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