summaryrefslogtreecommitdiffstats
path: root/lib/apiv1
diff options
context:
space:
mode:
Diffstat (limited to 'lib/apiv1')
-rw-r--r--lib/apiv1/exec.go3
1 files changed, 3 insertions, 0 deletions
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{})