summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-12-07 17:58:35 (EST)
committer P. J. McDermott <pj@pehjota.net>2014-12-07 17:58:35 (EST)
commitec1f5c1808ab3dcb1c1099a44bc8709a0c61c7d6 (patch)
tree87de60fe0945b44c54a99e8b63c30d654ed69c85
parent7cd5e68c665836da8a62c8684b1471eea8e90d8f (diff)
Use error()
-rw-r--r--debeagle.sh3
1 files changed, 1 insertions, 2 deletions
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
}