Add a missing conflict if we tried to unstow a file in compat mode.
This commit is contained in:
parent
a1246072dd
commit
eda2b83355
1 changed files with 5 additions and 0 deletions
5
stow.in
5
stow.in
|
@ -675,6 +675,11 @@ sub unstow_node_orig {
|
|||
fold_tree($target, $parent);
|
||||
}
|
||||
}
|
||||
elsif (-e $target) {
|
||||
conflict(
|
||||
qq{existing target is neither a link nor a directory: $target},
|
||||
);
|
||||
}
|
||||
else {
|
||||
debug(3, "$target did not exist to be unstowed");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue