X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=lib%2Fxdsserver%2Fsdk.go;fp=lib%2Fxdsserver%2Fsdk.go;h=d5b2b43d27079edc931418103b2a5ffced33da8f;hb=55976cdcd58ed3311090aeb9d371bff53c49dcc1;hp=90dae195797852222a921106f4ae92ed7f88b135;hpb=889325999e1755b57631d380a048b365ea26fc37;p=src%2Fxds%2Fxds-server.git diff --git a/lib/xdsserver/sdk.go b/lib/xdsserver/sdk.go index 90dae19..d5b2b43 100644 --- a/lib/xdsserver/sdk.go +++ b/lib/xdsserver/sdk.go @@ -492,5 +492,9 @@ func (s *CrossSDK) Get() *xsapiv1.SDK { // GetEnvCmd returns the command used to initialized the environment func (s *CrossSDK) GetEnvCmd() []string { + if s.sdk.SetupFile == "" { + return []string{} + } return []string{"source", s.sdk.SetupFile} + }