diff options
author | P. J. McDermott <pj@pehjota.net> | 2016-01-17 12:06:59 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2016-01-17 12:06:59 (EST) |
commit | 6c35a8ea3f43974f911af84680aaa118a9a711e0 (patch) | |
tree | ef4512c9f217a517317b91cfd21ebf7fdce71271 /src | |
parent | 5caa31726d2c68ddc7541d6a725d3ed51cd6aa1a (diff) |
check_block(): Use non-exiting error()
Diffstat (limited to 'src')
-rw-r--r-- | src/block.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/block.sh b/src/block.sh index fb6b921..feab865 100644 --- a/src/block.sh +++ b/src/block.sh @@ -31,7 +31,8 @@ check_block() local dev="${1}" if ! [ -b "${dev}" ]; then - error 2 "$(get_msg 'block_device_invalid')" "${dev}" + error "$(get_msg 'block_device_invalid')" "${dev}" + return 1 fi } |