chore: logging output cleanup
This commit is contained in:
parent
74fa194a30
commit
f5c71ee915
3 changed files with 8 additions and 8 deletions
|
@ -211,7 +211,7 @@ func Set_Grub2() ([]string, error) {
|
|||
sysfile := sysfile_re.ReplaceAllString(conffile, "")
|
||||
|
||||
// Write to logger
|
||||
logger.Printf("Executing command:\nsudo cp -v \"%s\" %s", conffile, sysfile)
|
||||
logger.Printf("Executing command:\nsudo cp -v \"%s\" %s\n", conffile, sysfile)
|
||||
|
||||
// Make our output slice
|
||||
var output []string
|
||||
|
|
|
@ -244,7 +244,7 @@ func CopyToSystem(conffile, sysfile string) string {
|
|||
clean_output := clean_re.ReplaceAllString(output[0], "")
|
||||
|
||||
// Write output to logger
|
||||
logger.Printf(clean_output)
|
||||
logger.Printf("%s\n", clean_output)
|
||||
|
||||
// Return the output
|
||||
return fmt.Sprintf("Copying: %s", clean_output)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue