]> granicus.if.org Git - libexpat/commitdiff
qa.sh: "set -e" inside "|| exit 1"-ed subshell did not have any effect
authorSebastian Pipping <sebastian@pipping.org>
Mon, 6 Jun 2016 20:47:50 +0000 (22:47 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Mon, 6 Jun 2016 20:47:52 +0000 (22:47 +0200)
http://unix.stackexchange.com/questions/65532/why-does-set-e-not-work-inside/65564#65564

expat/qa.sh

index e275021b995b165bf77cb29e416b61e16fd1bc88..1c7f3f6903e56b59cde9bb7b99382acfad544122 100755 (executable)
@@ -97,7 +97,8 @@ main() {
             RUN "${MAKE}" check run-xmltest
             ;;
         esac
-    ) || exit 1
+    )
+    [[ $? -ne 0 ]] && exit 1
 
     case "${mode}" in
     coverage)