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 = "$_";
|
||||||
$target =~ s/.*\///;
|
$target =~ s/.*\///;
|
||||||
$target = $targetdir."/".$target;
|
$target = $targetdir."/".$target;
|
||||||
if ( -e "$target" ) {
|
if ( -e "$source" ) {
|
||||||
&compare($source, $target);
|
if ( -e "$target" ) {
|
||||||
} elsif ( ! $opt_r ) {
|
&compare($source, $target);
|
||||||
if ( $DEBUG ) { print "mv $_ -> $target\n"; }
|
} elsif ( ! $opt_r ) {
|
||||||
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