Skip to content

Commit aee1ec6

Browse files
Merge pull request #311 from luotianqi777/master
fix: support bash jar
2 parents abf6ae9 + 6a4e82d commit aee1ec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opensca/walk/zip.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func xjar(ctx context.Context, filter ExtractFileFilter, input, output string) b
9393
tempf := common.CreateTemp("jar")
9494
defer os.Remove(tempf.Name())
9595

96-
data, err := io.ReadAll(tempf)
96+
data, err := os.ReadFile(input)
9797
if err != nil {
9898
logs.Warn(err)
9999
tempf.Close()

0 commit comments

Comments
 (0)