mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +00:00
plugins/chksum: use exit instead of return
From https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_24: | The return utility shall cause the shell to stop executing the current | function or dot script. If the shell is not currently executing a | function or dot script, the results are unspecified. Closes: https://github.com/jarun/nnn/issues/1572
This commit is contained in:
parent
12aedd521d
commit
ca8fcf454a
|
@ -61,7 +61,7 @@ elif [ -n "$1" ]; then
|
||||||
if echo "$1" | grep -q \.${chks}$; then
|
if echo "$1" | grep -q \.${chks}$; then
|
||||||
${chks}sum -c < "$1"
|
${chks}sum -c < "$1"
|
||||||
read -r _
|
read -r _
|
||||||
return
|
exit
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
checksum_type
|
checksum_type
|
||||||
|
|
Loading…
Reference in a new issue