Skip to content

Commit

Permalink
Merge pull request #77 from marcosps/println
Browse files Browse the repository at this point in the history
main.go: Change Fprintf to Fprintln
  • Loading branch information
stgraber committed Mar 22, 2018
2 parents 2e6afe9 + afb5af6 commit 580c95e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distrobuilder/main.go
Expand Up @@ -89,7 +89,7 @@ func main() {
PersistentPreRun: func(cmd *cobra.Command, args []string) {
// Sanity checks
if os.Geteuid() != 0 {
fmt.Fprintln(os.Stderr, "You must be root to run this tool")
fmt.Fprintf(os.Stderr, "You must be root to run this tool\n")
os.Exit(1)
}
},
Expand Down Expand Up @@ -121,7 +121,7 @@ func main() {
if globalCmd.flagCacheDir == "" {
dir, err := ioutil.TempDir("/var/cache", "distrobuilder.")
if err != nil {
fmt.Fprintf(os.Stderr, "Failed to create cache directory: %s", err)
fmt.Fprintf(os.Stderr, "Failed to create cache directory: %s\n", err)
os.Exit(1)
}

Expand Down

0 comments on commit 580c95e

Please sign in to comment.