Skip to content

Commit

Permalink
Issue ricardoamaro#34 checking for different docker version formats
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi Govaerts committed Jun 7, 2016
1 parent e67e57f commit eeded62
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,12 @@ if [ ! -f /usr/bin/docker ];
else
echo
# Check Docker Version
DOCKER_VERSION=$(docker version | grep "Server version" | awk '{print $3}')
if [ -z $(docker version | grep "Server version" | awk '{print $3}') ];
then
DOCKER_VERSION=$(docker version --format '{{.Server.Version}}')
else
DOCKER_VERSION=$(docker version | grep "Server version" | awk '{print $3}')
fi
if [ -z "${DOCKER_VERSION}" ];
then
echo
Expand Down

0 comments on commit eeded62

Please sign in to comment.