Skip to content

Commit 6ed293b

Browse files
committed
Fix bug in shim path lookup
Signed-off-by: Justin Terry (VM) <[email protected]>
1 parent f35c352 commit 6ed293b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

runtime/v2/shim/util.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ func Command(ctx context.Context, runtime, containerdAddress, path string, cmdAr
7171
// execute the shim found there.
7272
testPath := filepath.Join(filepath.Dir(self), name)
7373
if _, serr := os.Stat(testPath); serr == nil {
74-
path = testPath
74+
cmdPath = testPath
7575
}
76-
if path == "" {
76+
if cmdPath == "" {
7777
return nil, errors.Wrapf(os.ErrNotExist, "runtime %q binary not installed %q", runtime, name)
7878
}
7979
}

0 commit comments

Comments
 (0)