From 92e9cb3c85af9f774355c7e7057e7760802695ca Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Mon, 5 Feb 2024 10:31:43 +0100 Subject: [PATCH] build: fail on errors when installing chktex (#5214) Refactor the chktex installation scripts because lists of commands don't fail if one of them exits with an error, even if set -e (errexit) is set. See the Bash reference manual, section 4.3.1 'The Set Builtin'. --- scripts/install-chktex.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/install-chktex.sh b/scripts/install-chktex.sh index 7d6153ec..07573b20 100755 --- a/scripts/install-chktex.sh +++ b/scripts/install-chktex.sh @@ -11,12 +11,13 @@ apk add --no-cache --virtual .chktex-build-deps \ libtool \ make -git clone https://git.savannah.gnu.org/git/chktex.git && - cd chktex/chktex && - ./autogen.sh --prefix=/usr/bin && - ./configure && - make && - install chktex /usr/bin +git clone https://git.savannah.gnu.org/git/chktex.git + +cd chktex/chktex +./autogen.sh --prefix=/usr/bin +./configure +make +install chktex /usr/bin rm -rfv /chktex