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 }