Skip to content

Commit

Permalink
Make sure to purge when overrideing source
Browse files Browse the repository at this point in the history
  • Loading branch information
Terje Torkelsen committed Jul 31, 2019
1 parent 4fc8f05 commit 1a8b078
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ func (ic *initCmd) processArgs(args []string) error {
return purgeAndReconfigureTogether
}

// Always purge if source is overwritten
if ic.source != "" {
ic.purge = true
}

return nil
}

Expand Down

0 comments on commit 1a8b078

Please sign in to comment.