From 2a393afa320ab898bb3e9dc261539f590fb4bdab Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 25 Apr 2019 18:44:03 -0400 Subject: is_block(): Make "set -e" safety explicit --- (limited to 'src') 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() -- cgit v0.9.1