nnn: update .nmv

This commit is contained in:
FollieHiyuki 2021-05-01 18:05:18 +03:00
parent 82294c1e80
commit 1a2dca31bc
No known key found for this signature in database
GPG Key ID: 813CF484F4993419

View File

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