return early if source doesn't exist on symlink
This commit is contained in:
parent
e0baaa998a
commit
78f394bff8
1 changed files with 1 additions and 1 deletions
|
@ -368,13 +368,13 @@ sub do_symlink
|
|||
}
|
||||
}
|
||||
else {
|
||||
return unless -e $fullfrom;
|
||||
print "REMOVE: $to\n" if $opt_verbose;
|
||||
unlink $to;
|
||||
if ( $opt_delete ) {
|
||||
push_on_ziplist($to) if $opt_zip;
|
||||
return;
|
||||
}
|
||||
return unless -e $fullfrom;
|
||||
print "SYMLIB: $from -> $to\n" if $opt_verbose;
|
||||
if ( !symlink("$from", "$to") ) {
|
||||
print_error("can't symlink $from -> $to: $!",0);
|
||||
|
|
Loading…
Reference in a new issue