From: ath3 Date: Wed, 19 Jun 2019 11:40:31 +0000 (+0200) Subject: Changed bash code to sh X-Git-Tag: v2.6~90^2~2 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=c499f1cb7fa5b44299bd8e4d7635c67006232cca;p=nnn.git Changed bash code to sh --- diff --git a/plugins/md5sum b/plugins/md5sum index 0ba8a1b7..76a2571d 100755 --- 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