Skip to content

Commit 56a74c5

Browse files
davemooreuwstjholm
authored andcommitted
fix: WIP nitric run correct file paths
1 parent 4de9c71 commit 56a74c5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/cmd/run/root.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,15 @@ var runCmd = &cobra.Command{
4545
signal.Notify(term, os.Interrupt, syscall.SIGTERM)
4646
signal.Notify(term, os.Interrupt, syscall.SIGINT)
4747

48-
files, err := filepath.Glob(args[0])
48+
ctx, _ := filepath.Abs(".")
49+
50+
files, err := filepath.Glob(filepath.Join(ctx, args[0]))
4951

5052
if err != nil {
5153
cobra.CheckErr(err)
5254
}
5355

5456
// Prepare development images
55-
ctx, _ := filepath.Abs(".")
5657
if err := build.CreateBaseDev(ctx, map[string]string{
5758
"ts": "nitric-ts-dev",
5859
}); err != nil {

0 commit comments

Comments
 (0)