We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9ec2778 + c9afc42 commit a5d17ebCopy full SHA for a5d17eb
1 file changed
runtime/v2/shim/util.go
@@ -70,7 +70,7 @@ func Command(ctx context.Context, runtime, containerdAddress, containerdTTRPCAdd
70
}
71
72
if cmdPath == "" {
73
- if cmdPath, lerr = exec.LookPath(name); err != nil {
+ if cmdPath, lerr = exec.LookPath(name); lerr != nil {
74
if eerr, ok := lerr.(*exec.Error); ok {
75
if eerr.Err == exec.ErrNotFound {
76
// LookPath only finds current directory matches based on
0 commit comments