summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick 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)
commit2a393afa320ab898bb3e9dc261539f590fb4bdab (patch)
treec5a60224b0dadcf370f5c337239e327398a24a4c /src
parent2022cafc54698f018b2fa55bcbba31fa6938b385 (diff)
is_block(): Make "set -e" safety explicit
Diffstat (limited to 'src')
-rw-r--r--src/block.sh4
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()