Skip to content

Commit a6cd7e6

Browse files
authored
fix(config): support CRLF config files (#250)
1 parent f609a1d commit a6cd7e6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cmd/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ func (d *DeisCmd) ConfigPush(appID, fileName string) error {
252252
config := []string{}
253253

254254
for _, configVar := range file {
255+
// If file has CRLF encoding, the default on windows, strip the CR
256+
configVar = strings.Trim(configVar, "\r")
255257
if len(configVar) > 0 {
256258
config = append(config, configVar)
257259
}

0 commit comments

Comments
 (0)