Skip to content

Commit

Permalink
fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
roblaszczak committed Sep 11, 2024
1 parent c132818 commit 3e415c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trainings/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (h *Handlers) Init(ctx context.Context, trainingName string) error {
return err
}

if isInTrainingRoot(trainingRoot) {
if !isInTrainingRoot(trainingRoot) {
fmt.Println("\nNow run " + color.CyanString("cd "+trainingName+"/") + " to enter the training workspace")
}

Expand All @@ -64,7 +64,7 @@ func isInTrainingRoot(trainingRoot string) bool {
return false
}

return absPwd != absTrainingRoot
return absPwd == absTrainingRoot
}

var ErrInterrupted = errors.New("interrupted")
Expand Down

0 comments on commit 3e415c8

Please sign in to comment.