]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix #328
authorArun Prakash Jana <engineerarun@gmail.com>
Fri, 23 Aug 2019 16:13:32 +0000 (21:43 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 23 Aug 2019 16:13:32 +0000 (21:43 +0530)
plugins/checksum

index ea7e23162fd207fe8d5e4564f76f292d9e35367c..cd88bfdb6ae2b861e19bb84235d18713d61fdd27 100755 (executable)
@@ -42,14 +42,14 @@ 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"
 else
     if [ -n "$1" ] && [ -f "$1" ]; then
         for chks in md5 sha1 sha224 sha256 sha384 sha512
         do
             if [ "$(echo "$1" | grep \.${chks}$)" ]; then
                 ${chks}sum -c < "$1"
-                read
+                read dummy
                 exit
             fi
         done