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