summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 86693a6fdb..f0c5dc91fc 100755
--- a/build.sh
+++ b/build.sh
@@ -142,7 +142,16 @@ then
fi
# load autbuild provided shell functions and variables
-eval "$("$AUTOBUILD" source_environment)"
+if "$AUTOBUILD" source_environment > source_environment
+then
+ . source_environment
+else
+ # dump environment variables for debugging
+ env|sort
+ record_failure "autobuild source_environment failed"
+ cat source_environment >&3
+ exit 1
+fi
# dump environment variables for debugging
env|sort