diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-25 18:44:03 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-25 18:44:03 (EDT) |
commit | 2a393afa320ab898bb3e9dc261539f590fb4bdab (patch) | |
tree | c5a60224b0dadcf370f5c337239e327398a24a4c /src/block.sh | |
parent | 2022cafc54698f018b2fa55bcbba31fa6938b385 (diff) |
is_block(): Make "set -e" safety explicit
Diffstat (limited to 'src/block.sh')
-rw-r--r-- | src/block.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/block.sh b/src/block.sh index 39c980c..3c245ea 100644 --- a/src/block.sh +++ b/src/block.sh @@ -23,8 +23,8 @@ is_block() local dev="${1}" shift 1 - [ -b "${dev}" ] - return ${?} + [ -b "${dev}" ] || return ${?} + return 0 } check_block() |