diff options
-rw-r--r-- | src/pro-archman.sh | 4 |
1 files changed, 1 insertions, 3 deletions
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 "${@}" |