Skip to content

Commit

Permalink
ensure .iso image is downloaded (otherwise the VM just silently wont …
Browse files Browse the repository at this point in the history
…start as it has a non-exising .iso mounted)
  • Loading branch information
tknerr committed May 5, 2015
1 parent 3ce0d6f commit 95e01cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions files/tools/scripts/b2d-start.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
@echo off

:: check if we have the .iso file (if we don't have it, the VM won't start!)
if not exist %HOME%\.boot2docker\boot2docker.iso (
echo boot2docker.iso not found in %HOME%\.boot2docker\, downloading it...
boot2docker download
)

:: check if "boot2docker-vm" exists already
for /f "usebackq tokens=*" %%l in (`VBoxManage list --long vms`) do (
if "%%l" == "Name: boot2docker-vm" (
Expand Down

0 comments on commit 95e01cf

Please sign in to comment.