Code Review
/
src
/
xds
/
xds-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(from parent 1:
68f8933
)
Fixed error about no env config file.
author
Sebastien Douheret
<sebastien.douheret@iot.bzh>
Wed, 30 Aug 2017 20:44:44 +0000
(22:44 +0200)
committer
Sebastien Douheret
<sebastien.douheret@iot.bzh>
Wed, 30 Aug 2017 20:44:44 +0000
(22:44 +0200)
main.go
patch
|
blob
|
history
diff --git
a/main.go
b/main.go
index
d907a44
..
87de43c
100644
(file)
--- a/
main.go
+++ b/
main.go
@@
-123,7
+123,7
@@
func main() {
},
EnvVar{
Name: "XDS_LOGFILE",
- Usage: "logging file",
+ Usage: "logging file
(default: " + logFileInitial + ")
",
Destination: &logFile,
},
EnvVar{
@@
-524,9
+524,10
@@
func loadConfigEnvFile(confFile, gdbCmdFile string) (map[string]string, string,
path.Join(curDir, "target"),
path.Join(u.HomeDir, ".config", "xds"),
} {
- confFile = path.Join(d, xdsEnvFile)
- log.Infof("Search config in %s", confFile)
- if common.Exists(confFile) {
+ cf := path.Join(d, xdsEnvFile)
+ log.Infof("Search config in %s", cf)
+ if common.Exists(cf) {
+ confFile = cf
break
}
}