nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c499f1cb7fa5b44299bd8e4d7635c67006232cca
parent 4757873d3a4f72664649f12c56aa7f593cd0cfa6
Author: ath3 <ha05190@protonmail.com>
Date:   Wed, 19 Jun 2019 13:40:31 +0200

Changed bash code to sh

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

diff --git a/plugins/md5sum b/plugins/md5sum @@ -19,9 +19,7 @@ if [ -s "$selection" ]; then fi if [ "$resp" = "s" ]; then - arr=$(cat $selection | tr '\0' '\n') - { read -r file; } <<< "$arr" - file=$(basename "$file").md5 + file=$(basename "$(cat $selection | tr '\0' '\n' | head -n 1)").md5 cat "$selection" | sed 's|'"$PWD/"'||g' | xargs -0 -i md5sum {} > "$file" else if ! [ -z "$1" ] && [ -f "$1" ]; then