configure: fail on first error.
This commit is contained in:
parent
6876938719
commit
7efd6c75d7
1 changed files with 3 additions and 1 deletions
4
configure
vendored
4
configure
vendored
|
|
@ -3,6 +3,8 @@
|
|||
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
||||
# 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue