Skip to content

Commit

Permalink
Prevent remove of openshift-client file when running on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
shanedell committed Jan 27, 2024
1 parent b3d8e23 commit e4bb2e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/app/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ func Bundle(bundleDataIn *utils.BundleDataType) error {
if err != nil {
return err
}
os.Remove(localOSTarball)

if localOSTarball != "openshift-client-linux.tar.gz" {
os.Remove(localOSTarball)
}

os.Remove(filepath.Join(utils.BundleDirs.Bin, utils.OCLocalCmdPath))

return nil
Expand Down

0 comments on commit e4bb2e8

Please sign in to comment.