chore: logging output cleanup

This commit is contained in:
HikariKnight 2024-03-20 17:51:30 +01:00
parent 74fa194a30
commit f5c71ee915
3 changed files with 8 additions and 8 deletions

View file

@ -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

View file

@ -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)