wat netter
This commit is contained in:
parent
19040f3a9c
commit
bb7716f820
1 changed files with 7 additions and 5 deletions
|
|
@ -29,11 +29,13 @@ sub process {
|
|||
$target = "$_";
|
||||
$target =~ s/.*\///;
|
||||
$target = $targetdir."/".$target;
|
||||
if ( -e "$source" ) {
|
||||
if ( -e "$target" ) {
|
||||
&compare($source, $target);
|
||||
} elsif ( ! $opt_r ) {
|
||||
if ( $DEBUG ) { print "mv $_ -> $target\n"; }
|
||||
else { move("$_", "$target") or die "move failed: $!"; }
|
||||
if ( $DEBUG ) { print "mv $source -> $target\n"; }
|
||||
else { move("$source", "$target") or die "move failed $source -> $target: $!"; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue