1
0
mirror of https://github.com/docker/docs.git synced 2026-11-06 12:54:24 +03:00

set -e on windows

This commit is contained in:
Jeffrey Morgan
2015-07-13 17:29:35 -07:00
parent 45540619f5
commit 0bec920046

View File

@@ -1,4 +1,7 @@
#!/bin/bash
set -e
ISO=$HOME/.docker/machine/cache/boot2docker.iso
VM=dev
DOCKER_MACHINE=./docker-machine.exe
@@ -9,10 +12,10 @@ if [ ! -f $ISO ]; then
cp ./boot2docker.iso "$ISO"
fi
machine=$($DOCKER_MACHINE ls -q | grep "^$VM$")
machine=$($DOCKER_MACHINE ls -q | grep "^$VM$") || :
if [ -z $machine ]; then
echo "Creating Machine $VM..."
$DOCKER_MACHINE create -d virtualbox --virtualbox-memory 2048 $VM
$DOCKER_MACHINE create -d virtualbox --virtualbox-memory 2048 $VM
else
echo "Machine $VM already exists."
fi
@@ -26,8 +29,8 @@ echo "Setting environment variables for machine $VM..."
eval "$(./docker-machine.exe env $VM 2>/dev/null | sed 's,\\,\\\\,g')"
cd
clear
clear
cat << EOF