From f776f91033ff7bb4ecea0d10db5c920467d53458 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 12 Oct 2013 15:52:55 -0400 Subject: pro-archman: Use error() for "lock_fail" message. --- (limited to 'src') diff --git a/src/pro-archman.sh b/src/pro-archman.sh index dd8fe2e..732db76 100644 --- a/src/pro-archman.sh +++ b/src/pro-archman.sh @@ -107,9 +107,7 @@ main() mkdir -p "${opt_base_dir}/.db" lock="${opt_base_dir}/.db/lock" if ! (set -C; printf '%d\n' "${$}" >"${lock}") 2>/dev/null; then - printf '%s: Error: ' "${0##*/}" >&2 - printf "$(get_msg 'lock_fail')\n" >&2 - exit 2 + error 2 "$(get_msg 'lock_fail')" fi get_conf run_cmd "${@}" -- cgit v0.9.1