From 7ec67fe36f7a33fe3925ee43a5590d492a3e0455 Mon Sep 17 00:00:00 2001 From: Savil Srivastava <676452+savil@users.noreply.github.com> Date: Tue, 29 Oct 2024 09:25:43 -0700 Subject: [PATCH] [whitespace] sourcing init hooks: wrap project dir path in quotes --- internal/devbox/devbox.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/devbox/devbox.go b/internal/devbox/devbox.go index a8a24a0b30b..dc571b431c6 100644 --- a/internal/devbox/devbox.go +++ b/internal/devbox/devbox.go @@ -374,7 +374,7 @@ func (d *Devbox) EnvExports(ctx context.Context, opts devopt.EnvExportsOpts) (st envStr := exportify(envs) if opts.RunHooks { - hooksStr := ". " + shellgen.ScriptPath(d.ProjectDir(), shellgen.HooksFilename) + hooksStr := ". \"" + shellgen.ScriptPath(d.ProjectDir(), shellgen.HooksFilename) + "\"" envStr = fmt.Sprintf("%s\n%s;\n", envStr, hooksStr) }