diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-01-09 16:01:19 +0100 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-01-09 16:01:19 +0100 |
commit | 55976cdcd58ed3311090aeb9d371bff53c49dcc1 (patch) | |
tree | e5c61826b2b4eab646eedc18d7b35a0f335a3217 /lib/xdsserver/sdk.go | |
parent | 889325999e1755b57631d380a048b365ea26fc37 (diff) |
Fixed source env sdk file when file is not set.
Diffstat (limited to 'lib/xdsserver/sdk.go')
-rw-r--r-- | lib/xdsserver/sdk.go | 4 |
1 files changed, 4 insertions, 0 deletions
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} + } |