mirror of https://github.com/hak5/overseer.git
parent
a815be9c8e
commit
be5b0b50d8
|
@ -79,7 +79,7 @@ func (s *S3) Fetch() (io.Reader, error) {
|
|||
return nil, fmt.Errorf("GET request failed (%s)", err)
|
||||
}
|
||||
//extract gz files
|
||||
if strings.HasSuffix(s.Key, ".gz") && *get.ContentEncoding != "gzip" {
|
||||
if strings.HasSuffix(s.Key, ".gz") && aws.StringValue(get.ContentEncoding) != "gzip" {
|
||||
return gzip.NewReader(get.Body)
|
||||
}
|
||||
//success!
|
||||
|
|
|
@ -278,10 +278,10 @@ func (mp *master) fetch() {
|
|||
}
|
||||
}
|
||||
}()
|
||||
tokenOut, err := cmd.Output()
|
||||
tokenOut, err := cmd.CombinedOutput()
|
||||
returned = true
|
||||
if err != nil {
|
||||
mp.warnf("failed to run temp binary: %s", err)
|
||||
mp.warnf("failed to run temp binary: %s (%s) output \"%s\"", err, tmpBinPath, tokenOut)
|
||||
return
|
||||
}
|
||||
if tokenIn != string(tokenOut) {
|
||||
|
|
Loading…
Reference in New Issue