From: KlzXS Date: Fri, 30 Apr 2021 16:42:55 +0000 (+0200) Subject: Update .nmv X-Git-Tag: v4.1~118 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=002758063e2ff12468abbfc784a29f4678a95094;p=nnn.git Update .nmv --- diff --git a/plugins/.nmv b/plugins/.nmv index 77625466..224cdd82 100755 --- a/plugins/.nmv +++ b/plugins/.nmv @@ -120,7 +120,7 @@ while read -r num name; do if [ ! -d "$dir" ] && ! mkdir -p "$dir"; then printf "%s: failed to create directory tree %s\n" "$0" "$dir" > /dev/stderr exit_status=1 - elif ! mv "$src" "$name"; then + elif ! mv -i "$src" "$name"; then printf "%s: failed to rename %s to %s: %s\n" "$0" "$name" "$tmp" "$!" > /dev/stderr exit_status=1 else