summaryrefslogtreecommitdiffstats
path: root/src/block.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/block.sh')
-rw-r--r--src/block.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/block.sh b/src/block.sh
index f056305..fb6b921 100644
--- a/src/block.sh
+++ b/src/block.sh
@@ -40,7 +40,9 @@ block_mount()
local dev="${1}"
local dir=
- check_block "${dev}"
+ if ! check_block "${dev}"; then
+ return 2
+ fi
rand
dir="$(get_vardata_dir 'mount')/block-$(printf '%010d' ${rand_x})"