Skip to content

Commit

Permalink
Merge pull request #73 from sol-eng/fix-merge-issue
Browse files Browse the repository at this point in the history
Fix bug in writelines
  • Loading branch information
tnederlof authored Mar 3, 2023
2 parents fa6b8ac + 323edb4 commit d8ea515
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/config/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package config

import (
"fmt"
"os"

"github.com/sol-eng/wbi/internal/system"
)
Expand Down Expand Up @@ -149,7 +150,7 @@ func (WBConfig *WBConfig) PackageManagerStringToConfigWrite() error {
filepath := "/etc/rstudio/repos.conf"

fmt.Println("\n=== Writing to the file " + filepath + ":")
err := WriteStrings(writeLines, filepath)
err := system.WriteStrings(writeLines, filepath, 0644)
if err != nil {
fmt.Errorf("failed to write config: %w", err)
}
Expand All @@ -171,7 +172,7 @@ func (WBConfig *WBConfig) PackageManagerStringToConfigWrite() error {
filepath := "/etc/pip.conf"

fmt.Println("\n=== Writing to the file " + filepath + ":")
err := WriteStrings(writeLines, filepath)
err := system.WriteStrings(writeLines, filepath, 0644)
if err != nil {
fmt.Errorf("failed to write config: %w", err)
}
Expand Down

0 comments on commit d8ea515

Please sign in to comment.