mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Changed bash code to sh
This commit is contained in:
parent
4757873d3a
commit
c499f1cb7f
|
@ -19,9 +19,7 @@ if [ -s "$selection" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$resp" = "s" ]; then
|
if [ "$resp" = "s" ]; then
|
||||||
arr=$(cat $selection | tr '\0' '\n')
|
file=$(basename "$(cat $selection | tr '\0' '\n' | head -n 1)").md5
|
||||||
{ read -r file; } <<< "$arr"
|
|
||||||
file=$(basename "$file").md5
|
|
||||||
cat "$selection" | sed 's|'"$PWD/"'||g' | xargs -0 -i md5sum {} > "$file"
|
cat "$selection" | sed 's|'"$PWD/"'||g' | xargs -0 -i md5sum {} > "$file"
|
||||||
else
|
else
|
||||||
if ! [ -z "$1" ] && [ -f "$1" ]; then
|
if ! [ -z "$1" ] && [ -f "$1" ]; then
|
||||||
|
|
Loading…
Reference in a new issue