Skip to content

Commit

Permalink
Merge pull request #66 from ubclaunchpad/rob/#31-broken-config
Browse files Browse the repository at this point in the history
Properly detect existing inertia configuration
  • Loading branch information
bobheadxi committed Jan 22, 2018
2 parents 9b5c4ff + d47b225 commit 6e22e95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Inertia makes it easy to set up automated deployment for Dockerized
applications.

[![Coverage Status](https://coveralls.io/repos/github/ubclaunchpad/inertia/badge.svg?branch=master)](https://coveralls.io/github/ubclaunchpad/inertia?branch=master)
[![Build Status](https://travis-ci.org/ubclaunchpad/inertia.svg?branch=master)](https://travis-ci.org/ubclaunchpad/inertia)[![Coverage Status](https://coveralls.io/repos/github/ubclaunchpad/inertia/badge.svg?branch=master)](https://coveralls.io/github/ubclaunchpad/inertia?branch=master)

## Installation

Expand Down
4 changes: 2 additions & 2 deletions client/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ func createConfigDirectory() error {
}

_, dirErr := os.Stat(configDirPath)
_, fileErr := os.Stat(configFilePath)
s, fileErr := os.Stat(configFilePath)

// Check if everything already exists.
if os.IsExist(dirErr) && os.IsExist(fileErr) {
if s != nil {
return errors.New("inertia already properly configured in this folder")
}

Expand Down

0 comments on commit 6e22e95

Please sign in to comment.