aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-08-23 21:43:32 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-08-23 21:43:32 +0530
commit3a0f2a20d823572bd3737aeecf33ab5913d5be2b (patch)
tree404ef564aab7274bdb567e2a24d841b29cb1525c /plugins
parenta4d8d68c7d50059610816972fcc859066279a628 (diff)
downloadnnn-3a0f2a20d823572bd3737aeecf33ab5913d5be2b.tar.gz
Fix #328
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/checksum4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/checksum b/plugins/checksum
index ea7e231..cd88bfd 100755
--- a/plugins/checksum
+++ b/plugins/checksum
@@ -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