Make sure that platformtest.sh aborts when autogen.sh fails
authorAlexander Barton <alex@barton.de>
Fri, 20 Jan 2017 16:24:22 +0000 (17:24 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 20 Jan 2017 16:24:28 +0000 (17:24 +0100)
contrib/platformtest.sh

index 7f7e6b4..e054d06 100755 (executable)
@@ -98,6 +98,10 @@ if [ ! -r "$SRC_D/configure" ]; then
        else
                ./autogen.sh >/dev/null
        fi
+       if [ $? -ne 0 ]; then
+               echo "$NAME: \"$SRC_D/autogen.sh\" script failed, aborting!"
+               exit 1
+       fi
        cd "$MY_D" || exit 1
 fi