X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=lib%2Fapiv1%2Fexec.go;h=de40c7041c8cfa6291bda85314a252870f7bd50c;hb=8b800f6c9d862009684ce52d0007da08f46e748d;hp=fd0f8bb8cfc8c04e6950381274206d1d2b01d91f;hpb=715e52f2b5bcb4c195039e1269c872bc8761a3c6;p=src%2Fxds%2Fxds-server.git diff --git a/lib/apiv1/exec.go b/lib/apiv1/exec.go index fd0f8bb..de40c70 100644 --- a/lib/apiv1/exec.go +++ b/lib/apiv1/exec.go @@ -135,7 +135,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