Skip to content

Commit

Permalink
fix: cmd runner output reader
Browse files Browse the repository at this point in the history
  • Loading branch information
slntopp committed Jan 3, 2025
1 parent fe27e2e commit e4e6052
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions providers/os/connection/device/linux/device_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package linux
import (
"bytes"
"fmt"
"io"
"os"
"path"
"path/filepath"
Expand Down Expand Up @@ -154,8 +155,8 @@ func (d *LinuxDeviceManager) attemptFindFstab(dir string) ([]resources.FstabEntr
log.Error().Err(err).Msg("error searching for fstab")
return nil, nil
}
var out []byte
_, err = cmd.Stdout.Read(out)

out, err := io.ReadAll(cmd.Stdout)
if err != nil {
log.Error().Err(err).Msg("error reading find output")
return nil, nil
Expand Down

0 comments on commit e4e6052

Please sign in to comment.