Skip to content

Commit

Permalink
Do not pass os.Stdin to launched command (#14)
Browse files Browse the repository at this point in the history
This is related to getgauge/gauge#2419
- removes problematic line
- references issue in the code
- updates the dependencies in order to get go build and go test working

Signed-off-by: Lukas Bockstaller <lukas.bockstaller@posteo.de>
Signed-off-by: Chad Wilson <chadw@thoughtworks.com>
  • Loading branch information
bockstaller authored Oct 26, 2023
1 parent dedab3e commit b797a8b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions common.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ func CopyFile(src, dest string) error {
return nil
}

//Appends contents of source file to destination file.
// Appends contents of source file to destination file.
// If destination file is not present, Copy file action is performed
func AppendToFile(srcFile, destFile string) error {
if FileExists(destFile) {
Expand Down Expand Up @@ -542,7 +542,6 @@ func prepareCommand(isSystemCommand bool, command []string, workingDir string, o
cmd.Dir = workingDir
cmd.Stdout = outputStreamWriter
cmd.Stderr = errorStreamWriter
cmd.Stdin = os.Stdin
return cmd
}

Expand Down

0 comments on commit b797a8b

Please sign in to comment.