From 153c9344e93662984b1a5368a2722c10117db830 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Thu, 20 Aug 2026 15:13:47 +0500 Subject: nnn: update plugins --- files/.config/nnn/plugins/chksum | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'files/.config/nnn/plugins/chksum') diff --git a/files/.config/nnn/plugins/chksum b/files/.config/nnn/plugins/chksum index 9441cc1..68aeec4 100755 --- a/files/.config/nnn/plugins/chksum +++ b/files/.config/nnn/plugins/chksum @@ -48,7 +48,7 @@ fi if [ "$resp" = "s" ]; then checksum_type - sed 's|'"$PWD/"'||g' < "$selection" | xargs -0 -I{} ${chsum}sum {} > "checksum_$(date '+%Y%m%d%H%M').$chsum" + sed 's|'"$PWD/"'||g' < "$selection" | xargs -0 -I{} "${chsum}sum" {} > "checksum_$(date '+%Y%m%d%H%M').$chsum" # Clear selection if [ -p "$NNN_PIPE" ]; then @@ -66,10 +66,10 @@ elif [ -n "$1" ]; then done checksum_type file=$(basename "$1").$chsum - ${chsum}sum "$1" > "$file" + "${chsum}"sum "$1" > "$file" elif [ -d "$1" ]; then checksum_type file=$(basename "$1").$chsum - find "$1" -type f -exec ${chsum}sum "{}" + > "$file" + find "$1" -type f -exec "${chsum}sum" "{}" + > "$file" fi fi -- cgit v1.2.3