summaryrefslogtreecommitdiffstats
path: root/src/egl/egl-entrypoint-check
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2017-02-26 00:17:52 +0000
committerEric Engestrom <[email protected]>2017-02-26 13:39:43 +0000
commitcd35a119adbe1dec7d5d3e59b9e4ff0bd936e927 (patch)
tree1881fa2e86c8b0eea10a7a9c5f70b619c5740b42 /src/egl/egl-entrypoint-check
parenta1e5e55989c70c5f58bdd8a797f9a035f068f580 (diff)
check: make any failure fatal
Previously, only the last error code was returned. Using `set -e` makes the script quit on any unhandled error. Signed-off-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/egl/egl-entrypoint-check')
-rwxr-xr-xsrc/egl/egl-entrypoint-check1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/egl/egl-entrypoint-check b/src/egl/egl-entrypoint-check
index 3bf69b22755..e20b374454c 100755
--- a/src/egl/egl-entrypoint-check
+++ b/src/egl/egl-entrypoint-check
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+set -e
entrypoints=$(grep EGL_ENTRYPOINT "$srcdir"/main/eglentrypoint.h)
sorted=$(sort <<< "$entrypoints")