Skip to content

Commit b4c12c5

Browse files
authored
Merge pull request #6 from trufflesecurity/oc-20230315-lenient-sanity-check
Make sanity check more lenient
2 parents 3442b01 + 2643951 commit b4c12c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

proc_parent.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,13 +292,13 @@ func (mp *parent) fetch() {
292292
}
293293
}
294294
}()
295-
tokenOut, err := cmd.CombinedOutput()
295+
cmdOutput, err := cmd.CombinedOutput()
296296
returned = true
297297
if err != nil {
298-
mp.warnf("failed to run temp binary: %s (%s) output \"%s\"", err, tmpBinPath, tokenOut)
298+
mp.warnf("failed to run temp binary: %s (%s) output \"%s\"", err, tmpBinPath, cmdOutput)
299299
return
300300
}
301-
if tokenIn != string(tokenOut) {
301+
if !strings.Contains(string(cmdOutput), tokenIn) {
302302
mp.warnf("sanity check failed")
303303
return
304304
}

0 commit comments

Comments
 (0)