From ec1f5c1808ab3dcb1c1099a44bc8709a0c61c7d6 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 07 Dec 2014 17:58:35 -0500 Subject: Use error() --- diff --git a/debeagle.sh b/debeagle.sh index dad40db..6b9b575 100644 --- a/debeagle.sh +++ b/debeagle.sh @@ -58,8 +58,7 @@ main() printf 'Installing to %s\n' \ "$(get_block_dev_name "${target#/dev/}")" else - printf 'Device %s not found\n' "${target}" >&2 - exit 1 + error 1 'Device %s not found\n' "${target}" fi } -- cgit v0.9.1