Skip to content

Commit

Permalink
LF -> CRLF in batch file
Browse files Browse the repository at this point in the history
  • Loading branch information
3846masa committed Feb 13, 2017
1 parent 8078165 commit 4ded1a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package packages

import (
"bufio"
"bytes"
"fmt"
"io"
"io/ioutil"
Expand Down Expand Up @@ -38,6 +39,7 @@ func (pm *PackageManager) Install(pkg *Package) error {

if runtime.GOOS == "windows" {
d = append([]byte(":: |\n @( whalebrew run %~f0 %* || exit /b %ERRORLEVEL% ) && exit /b 0\n"), d...)
d = bytes.Replace(d, []byte("\n"), []byte("\r\n"), -1)
packagePath = packagePath + ".bat"
} else {
d = append([]byte("#!/usr/bin/env whalebrew\n"), d...)
Expand Down

0 comments on commit 4ded1a2

Please sign in to comment.