ne pas considérer comme une erreur de faire un déplacement inutile

This commit is contained in:
Jephte CLAIN 2014-12-21 13:03:58 +04:00
parent 0c1f26a438
commit cc3869707c
1 changed files with 2 additions and 2 deletions

View File

@ -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
}