Skip to content

Commit

Permalink
refactor: update logging format in writeFiles function to use echo -n
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-gang committed Jan 17, 2025
1 parent 22cb555 commit 5f503a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func writeFile(path string, content string) error {
func writeFiles(paths []string, contents []string, logger *logger.Logger) error {
for i, content := range contents {
logger.UpdateSecondaryPrefix("Setup")
logger.Infof("echo \"%s\" > \"%s\"", strings.TrimRight(content, "\n"), paths[i])
logger.Infof("echo -n \"%s\" > \"%s\"", strings.TrimRight(content, "\n"), paths[i])
logger.ResetSecondaryPrefix()

if err := writeFile(paths[i], content); err != nil {
Expand Down

0 comments on commit 5f503a7

Please sign in to comment.