ne pas considérer comme une erreur de faire un déplacement inutile
This commit is contained in:
parent
0c1f26a438
commit
cc3869707c
|
@ -845,11 +845,11 @@ function move_link() {
|
|||
linkdir="$(dirname -- "$link")"
|
||||
ldest="$(readlink "$link")"
|
||||
ldest="$(abspath "$ldest" "$linkdir")"
|
||||
[ "$dest" == "$link" ] && return 1
|
||||
[ "$dest" == "$link" ] && return 0
|
||||
mv "$link" "$dest" || return 1
|
||||
update_link "$ldest" "$dest"
|
||||
else
|
||||
[ "$dest" == "$link" ] && return 1
|
||||
[ "$dest" == "$link" ] && return 0
|
||||
mv "$link" "$dest"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue