From c826d0891742b61ef3ae0f2204f1b0fb37a83d35 Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Sat, 9 May 2015 09:18:53 -0700 Subject: [PATCH] Fix bug where machine would not exist --- package.json | 2 +- src/stores/SetupStore.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e0ea500094..eb6f6d2f5c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Kitematic", - "version": "0.5.24", + "version": "0.5.25", "author": "Kitematic", "description": "Simple Docker Container management for Mac OS X.", "homepage": "https://kitematic.com/", diff --git a/src/stores/SetupStore.js b/src/stores/SetupStore.js index 1263c2e920..3930bc47fc 100644 --- a/src/stores/SetupStore.js +++ b/src/stores/SetupStore.js @@ -64,7 +64,7 @@ var _steps = [{ setupUtil.simulateProgress(this.seconds, progressCallback); var exists = yield machine.exists(); if (!exists || (yield machine.state()) === 'Error') { - if ((yield machine.state()) === 'Error') { + if (exists && (yield machine.state()) === 'Error') { yield machine.rm(); } yield machine.create();