Skip to content

Instantly share code, notes, and snippets.

@jeanlaurent
Created August 11, 2015 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeanlaurent/a57eaaebe719aec11f81 to your computer and use it in GitHub Desktop.
Save jeanlaurent/a57eaaebe719aec11f81 to your computer and use it in GitHub Desktop.
#/bin/sh
b2dstatus=$(boot2docker status)
b2dip="$(boot2docker ip 2>/dev/null)"
if [ "$?" -ne 0 ]; then
message=""
else
message="on $b2dip"
fi
echo boot2docker is $b2dstatus $message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment