From cc3869707c67e2f6d7d72985d05ba952607e9057 Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Sun, 21 Dec 2014 13:03:58 +0400 Subject: [PATCH] =?UTF-8?q?ne=20pas=20consid=C3=A9rer=20comme=20une=20erre?= =?UTF-8?q?ur=20de=20faire=20un=20d=C3=A9placement=20inutile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ulib/base | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ulib/base b/lib/ulib/base index 13e7e52..bbc28e7 100644 --- a/lib/ulib/base +++ b/lib/ulib/base @@ -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 }