X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=lib%2Fapiv1%2Fexec.go;h=4994b27475d922727d03a2d609a320d5adf73988;hb=ec22c45b4adaf530c66c053cf4e9408c4f791349;hp=675f6fb03a896e3aa5c8871319ce5a331e71fff7;hpb=64ed54b54f8efe6a0fd350cfc43970eba90a4a57;p=src%2Fxds%2Fxds-server.git diff --git a/lib/apiv1/exec.go b/lib/apiv1/exec.go index 675f6fb..4994b27 100644 --- a/lib/apiv1/exec.go +++ b/lib/apiv1/exec.go @@ -184,6 +184,9 @@ func (s *APIService) execCmd(c *gin.Context) { cmd = append(cmd, args.Args...) } + // Append client project dir to environment + args.Env = append(args.Env, "CLIENT_PROJECT_DIR="+prj.RelativePath) + s.log.Debugf("Execute [Cmd ID %d]: %v", cmdID, cmd) data := make(map[string]interface{})