Favor selection over current for nmv

This commit is contained in:
KlzXS 2021-02-16 21:46:56 +00:00
parent 7e307bc2ff
commit c9c1d0d454
No known key found for this signature in database
GPG Key ID: FF9B81B098D5BACA
1 changed files with 3 additions and 6 deletions

View File

@ -27,12 +27,9 @@ exit_status=0
dst_file=$(mktemp "$TMPDIR/.nnnXXXXXX")
if [ -s "$selection" ]; then
printf "Rename 'c'urrent / 's'election? "
read -r resp
if ! [ "$resp" = "c" ] && ! [ "$resp" = "s" ]; then
exit 1
fi
resp="s"
else
resp="c"
fi
if [ "$resp" = "s" ]; then