fix: add missing head -n1 call to second build-env test

Otherwise `docker inspect` outputs a "condensed" json output that doesn't parse as well...
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2019-03-14 13:44:54 -04:00
1 parent 8dcbfe5542
commit 7d2f5b84c8
1 file changed
+1 -1
+1 -1
View File
@@ -87,7 +87,7 @@ teardown() {
echo export DOKKU_HOST_ROOT="$TMP_ROOT" > $DOKKU_ROOT/.dokkurc/HOST_ROOT echo export DOKKU_HOST_ROOT="$TMP_ROOT" > $DOKKU_ROOT/.dokkurc/HOST_ROOT
DOKKU_HOST_ROOT="$TMP_ROOT" deploy_app DOKKU_HOST_ROOT="$TMP_ROOT" deploy_app
BUILD_CID=$(docker ps -a | grep $TEST_APP | grep /bin/bash | awk '{print $1}') BUILD_CID=$(docker ps -a | grep $TEST_APP | grep /bin/bash | awk '{print $1}' | head -n1)
run /bin/bash -c "docker inspect --format '{{ .HostConfig.Binds }}' $BUILD_CID | tr -d '[]' | cut -f1 -d:" run /bin/bash -c "docker inspect --format '{{ .HostConfig.Binds }}' $BUILD_CID | tr -d '[]' | cut -f1 -d:"
echo "output: $output" echo "output: $output"
echo "status: $status" echo "status: $status"