Skip to content

Commit a5d17eb

Browse files
authored
Merge pull request #5143 from kevpar/fix-lookpath
Fix error checking when resolving shim binary path
2 parents 9ec2778 + c9afc42 commit a5d17eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runtime/v2/shim/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func Command(ctx context.Context, runtime, containerdAddress, containerdTTRPCAdd
7070
}
7171

7272
if cmdPath == "" {
73-
if cmdPath, lerr = exec.LookPath(name); err != nil {
73+
if cmdPath, lerr = exec.LookPath(name); lerr != nil {
7474
if eerr, ok := lerr.(*exec.Error); ok {
7575
if eerr.Err == exec.ErrNotFound {
7676
// LookPath only finds current directory matches based on

0 commit comments

Comments
 (0)