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")"
|
linkdir="$(dirname -- "$link")"
|
||||||
ldest="$(readlink "$link")"
|
ldest="$(readlink "$link")"
|
||||||
ldest="$(abspath "$ldest" "$linkdir")"
|
ldest="$(abspath "$ldest" "$linkdir")"
|
||||||
[ "$dest" == "$link" ] && return 1
|
[ "$dest" == "$link" ] && return 0
|
||||||
mv "$link" "$dest" || return 1
|
mv "$link" "$dest" || return 1
|
||||||
update_link "$ldest" "$dest"
|
update_link "$ldest" "$dest"
|
||||||
else
|
else
|
||||||
[ "$dest" == "$link" ] && return 1
|
[ "$dest" == "$link" ] && return 0
|
||||||
mv "$link" "$dest"
|
mv "$link" "$dest"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue