X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=lib%2Fapiv1%2Fexec.go;h=30444c194cd4c4a9b74ded6d90a1cde1f7ecbc90;hb=985b32b78da6e5ea008e45f6cf2df140df350ea9;hp=8ffad07059c3c3a4f8ca356f307991bff1b3205b;hpb=72f3969eeb71af69b5d97381fd4789c0ba375296;p=src%2Fxds%2Fxds-server.git diff --git a/lib/apiv1/exec.go b/lib/apiv1/exec.go index 8ffad07..30444c1 100644 --- a/lib/apiv1/exec.go +++ b/lib/apiv1/exec.go @@ -140,7 +140,7 @@ func (s *APIService) execCmd(c *gin.Context) { } } - cmd = append(cmd, "cd", fld.GetFullPath(args.RPath)) + cmd = append(cmd, "cd", "\""+fld.GetFullPath(args.RPath)+"\"") // FIXME - add 'exec' prevents to use syntax: // xds-exec -l debug -c xds-config.env -- "cd build && cmake .." // but exec is mandatory to allow to pass correctly signals