camput init: use osutil.KeyBlobsDir()

Change-Id: I1b9f29c24361ffab708af4bdaff8c870ff8730e6
This commit is contained in:
mpl 2013-12-11 00:47:50 +01:00
parent d0e36512f7
commit 62cbf8550c
1 changed files with 6 additions and 5 deletions

View File

@ -34,8 +34,8 @@ import (
)
type initCmd struct {
newKey bool
gpgkey string
newKey bool
gpgkey string
noconfig bool
}
@ -129,9 +129,10 @@ func (c *initCmd) RunCommand(args []string) error {
log.Fatal("--newkey and --gpgkey are mutually exclusive")
}
blobDir := path.Join(osutil.CamliConfigDir(), "keyblobs")
os.Mkdir(osutil.CamliConfigDir(), 0700)
os.Mkdir(blobDir, 0700)
blobDir := osutil.KeyBlobsDir()
if err := os.MkdirAll(blobDir, 0700); err != nil {
return err
}
var keyId string
var err error