Updated pybuilder example to use 'docker wait'

Upstream-commit: 4004e86fa9ca87332c8f5fa0acbe29af86e06908
Component: engine
This commit is contained in:
Solomon Hykes
2013-02-26 14:47:20 -08:00
parent 3caf4d4dd5
commit 9ff14257ee
+1 -1
View File
@@ -49,7 +49,7 @@ if [ "$CMD" = "build" ]; then
fi
if attach $BUILD_JOB ; then
BUILD_STATUS=`docker ps -a | sed -E -n "s/^$BUILD_JOB.*Exit ([0-9]+) *$/\1/p"`
BUILD_STATUS=`docker wait $BUILD_JOB`
if [ -z "$BUILD_STATUS" -o "$BUILD_STATUS" != 0 ]; then
echo "Build failed"
exit 1