OSDN Git Service
(root)
/
bytom
/
bytom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22dfb26
)
update data dir for linux (#672)
author
wz
<mars@bytom.io>
Tue, 17 Apr 2018 03:31:10 +0000
(11:31 +0800)
committer
Yongfeng LI
<wliyongfeng@gmail.com>
Tue, 17 Apr 2018 03:31:10 +0000
(11:31 +0800)
config/config.go
patch
|
blob
|
history
diff --git
a/config/config.go
b/config/config.go
index
9f11feb
..
63e0931
100644
(file)
--- a/
config/config.go
+++ b/
config/config.go
@@
-190,7
+190,7
@@
func rootify(path, root string) string {
func DefaultDataDir() string {
// Try to place the data folder in the user's home dir
home := homeDir()
- dataDir := "./.
B
ytom"
+ dataDir := "./.
b
ytom"
if home != "" {
switch runtime.GOOS {
case "darwin":
@@
-198,7
+198,7
@@
func DefaultDataDir() string {
case "windows":
dataDir = filepath.Join(home, "AppData", "Roaming", "Bytom")
default:
- dataDir = filepath.Join(home, ".
B
ytom")
+ dataDir = filepath.Join(home, ".
b
ytom")
}
}
return dataDir