bug in perl
This commit is contained in:
parent
64048592e4
commit
91f90b825f
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ sub backup($) {
|
||||||
@timestamp = localtime($stat[9]);
|
@timestamp = localtime($stat[9]);
|
||||||
$timestamp[5] += 1900;
|
$timestamp[5] += 1900;
|
||||||
$sfx = "$timestamp[3]$months[$timestamp[4]]$timestamp[5]";
|
$sfx = "$timestamp[3]$months[$timestamp[4]]$timestamp[5]";
|
||||||
unless ( -d "$dir/OLD" ) { mkdir "$dir/OLD" or die "Couldn't create $dir/OLD: $!\n"; }
|
unless ( -d "$dir/OLD" ) { mkdir "$dir/OLD", 0777 or die "Couldn't create $dir/OLD: $!\n"; }
|
||||||
$backup = "$dir/OLD/$base.$sfx";
|
$backup = "$dir/OLD/$base.$sfx";
|
||||||
|
|
||||||
if ( -e $backup && ! &cmp($file, $backup) ) {
|
if ( -e $backup && ! &cmp($file, $backup) ) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue