Merge pull request #857 from KlzXS/batch_rename

Favor selection over current for nmv
This commit is contained in:
Mischievous Meerkat 2021-02-18 00:39:00 +05:30 committed by GitHub
commit 4b15535983
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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