*: Fix minor issues

Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
This commit is contained in:
Thomas Hipp
2018-03-09 10:30:28 +01:00
parent e317214c48
commit 4a3902cf0f
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ func (c *cmdBuildDir) command() *cobra.Command {
continue
}
err := generator.Run(c.global.flagCacheDir, c.global.sourceDir, file)
err := generator.Run(c.global.flagCacheDir, c.global.targetDir, file)
if err != nil {
continue
}

View File

@ -40,7 +40,7 @@ func (g DumpGenerator) dumpFile(path, content string) error {
}
defer file.Close()
_, err = file.WriteString(content)
_, err = file.WriteString(content + "\n")
if err != nil {
return err
}