Skip to content

Commit

Permalink
fix app creation from file only
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Martinez committed Nov 9, 2017
1 parent 0f36953 commit 7db24e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ func CreateApp(env env.Project, appJson string, appDir string, appName string, v
}

descriptor.Name = appName
} else {
appName = descriptor.Name
appDir = path.Join(appDir, appName)
}

env.Init(appDir)
Expand Down
3 changes: 3 additions & 0 deletions device/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ func CreateDevice(project Project, deviceJson string, deviceDir string, deviceNa
}

descriptor.Name = deviceName
} else {
deviceName = descriptor.Name
deviceDir = path.Join(deviceDir, deviceName)
}

project.Init(deviceDir)
Expand Down

0 comments on commit 7db24e0

Please sign in to comment.