From 7efd6c75d7351a366e9ca7e09369ea151d1ce4ec Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Wed, 16 Feb 2022 13:29:53 +0000 Subject: [PATCH] configure: fail on first error. --- configure | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 593678804..d983516ac 100755 --- a/configure +++ b/configure @@ -3,6 +3,8 @@ # Copyright (C) 2021 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only +set -e + DISTRIBUTION="$(lsb_release --id --short)" readonly DISTRIBUTION="${DISTRIBUTION,,}" readonly ROOT=.build @@ -155,7 +157,7 @@ main() { COMPLAIN=0 small_arg="cfh" long_arg="complain,full,help" - opts="$(getopt -o $small_arg -l $long_arg -n "$PROGRAM" -- "$@")" + opts="$(getopt -o $small_arg -l $long_arg -n "configure" -- "$@")" err=$? eval set -- "$opts" while true; do case $1 in