mirror of
https://github.com/jarun/nnn.git
synced 2024-09-11 04:55:25 +03:00
fix shellcheck issues
This commit is contained in:
parent
f1c85b977a
commit
8c23c3da4e
@ -40,6 +40,7 @@ exit_status=0
|
||||
dst_file=$(mktemp "$TMPDIR/.nnnXXXXXX")
|
||||
|
||||
if nnn_use_selection "Rename"; then
|
||||
# shellcheck disable=SC2154
|
||||
arr=$(tr '\0' '\n' < "$selection")
|
||||
else
|
||||
findcmd="find . ! -name ."
|
||||
|
@ -48,7 +48,7 @@ nnn_use_selection() {
|
||||
if [ "$NNN_PREFER_SELECTION" -eq 1 ]; then
|
||||
return 0
|
||||
else
|
||||
[ -n "$1" ] && printf "$1 "
|
||||
[ -n "$1" ] && printf "%s " "$1"
|
||||
printf "(s)election/(c)urrent? [default=c] "
|
||||
read -r resp__
|
||||
|
||||
|
@ -21,6 +21,7 @@ if [ "$symmetry" = "s" ]; then
|
||||
else
|
||||
if nnn_use_selection; then
|
||||
clear_sel=1
|
||||
# shellcheck disable=SC2154
|
||||
files=$(tr '\0' '\n' < "$selection")
|
||||
else
|
||||
clear_sel=0
|
||||
|
Loading…
Reference in New Issue
Block a user