Browse Source

Changed bash code to sh

master
ath3 5 years ago
parent
commit
c499f1cb7f
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      plugins/md5sum

+ 1
- 3
plugins/md5sum View File

@@ -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


||||||
x
 
000:0
Loading…
Cancel
Save