nnn

mirror of https://github.com/jarun/nnn
Log | Files | Refs | README | LICENSE

commit eff63ec462338fd7d06e80fd83930ac0e2d63530
parent 55cbad42e7a65201e453a159fc034fcc4832faff
Author: beast989898 <98_beast_98@protonmail.com>
Date:   Sat,  2 Aug 2025 10:13:32 -0400

Use command directly to fix CI failure

Diffstat:
Mplugins/dragdrop | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/plugins/dragdrop b/plugins/dragdrop @@ -66,8 +66,7 @@ elif [ "$resp" = "r" ]; then "$dnd" --print-path --target 2>/dev/null | while read -r f do if printf "%s" "$f" | grep -q '^\(https\?\|ftps\?\|s\?ftp\)://' ; then - output=$(curl -fsLJOS "$f" 2>&1) - if [ $? = 0 ]; then + if output=$(curl -fsLJOS "$f" 2>&1); then filename="$(basename "${f%%\?*}")" add_file "$PWD/$filename" if [ $notify = 1 ]; then