Add a more precise error check for "autobuild source_environment".
parent
dc8092a5d4
commit
fea0cefcb3
11
build.sh
11
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue