From 51bffc05f5af71b21684aeea7f8c4a593a92d4d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zoe=20Faltib=C3=A0?= Date: Tue, 10 Nov 2020 17:31:22 +0100 Subject: [PATCH] autogen.sh: fix autoreconf exit code log --- autogen.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/autogen.sh b/autogen.sh index e99dc5b3..5da53be1 100755 --- a/autogen.sh +++ b/autogen.sh @@ -43,7 +43,8 @@ if [ $? -ne 0 ]; then fi autoreconf --install --force --verbose -I config -if [ $? -ne 0 ]; then - echo "autogen.sh: error: autoreconf exited with status $?" 1>&2 +res=$? +if [ "$res" -ne 0 ]; then + echo "autogen.sh: error: autoreconf exited with status $res" 1>&2 exit 1 fi