Skip to content

Commit

Permalink
adding debug
Browse files Browse the repository at this point in the history
Signed-off-by: Prune <[email protected]>
  • Loading branch information
prune998 committed Jan 3, 2024
1 parent 6c9eff0 commit 34fc039
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions util/kustomize/kustomize.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,12 @@ func (k *kustomize) Build(opts *v1alpha1.ApplicationSourceKustomize, kustomizeOp
}
}

directory, err := os.Getwd() //get the current directory using the built-in function
if err != nil {
fmt.Println(err) //print the error if obtained
}
fmt.Println("Current working directory:", directory)

var cmd *exec.Cmd
if kustomizeOptions != nil && kustomizeOptions.BuildOptions != "" {
params := parseKustomizeBuildOptions(k.path, kustomizeOptions.BuildOptions)
Expand Down

0 comments on commit 34fc039

Please sign in to comment.