We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
arduino
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 6f78949 commit c4df65bCopy full SHA for c4df65b
command/config/init.go
@@ -20,6 +20,7 @@ package config
20
import (
21
"errors"
22
"fmt"
23
+ "os"
24
"strings"
25
26
"github.com/arduino/arduino-cloud-cli/internal/config"
@@ -65,6 +66,7 @@ func Init(params *InitParams) error {
65
66
}
67
68
newSettings := viper.New()
69
+ newSettings.SetConfigPermissions(os.FileMode(0640))
70
config.SetDefaults(newSettings)
71
if err := newSettings.WriteConfigAs(configFile.String()); err != nil {
72
return fmt.Errorf("cannot create config file: %v", err)
0 commit comments