Skip to content

Commit

Permalink
fix: updating dsexec to try and create a config
Browse files Browse the repository at this point in the history
  • Loading branch information
tpryan committed Mar 30, 2023
1 parent 8f743ab commit 83ecd3a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docker/deploystack_exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,18 @@ func main() {

s, err := deploystack.Init(wd)
if err != nil {
tui.Fatal(fmt.Errorf("could not initialize: %s", err))

if !strings.Contains(err.Error(), "could not read config file") {
tui.Fatal(fmt.Errorf("could not initialize: %s", err))
}

if err := deploystack.WriteConfig(wd, github.Repo{}); err != nil {
tui.Fatal(err)
}
s, err = deploystack.Init(wd)
if err != nil {
tui.Fatal(err)
}
}

if *verify {
Expand Down

0 comments on commit 83ecd3a

Please sign in to comment.