Skip to content

Commit

Permalink
fix: unlike kind, minikube has a .exe extension
Browse files Browse the repository at this point in the history
Signed-off-by: Anders F Björklund <[email protected]>
  • Loading branch information
afbjorklund authored and benoitf committed Nov 16, 2023
1 parent f4160eb commit a82b030
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/minikube-installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const MACOS_X64_PLATFORM = 'darwin-x64';

const MACOS_ARM64_PLATFORM = 'darwin-arm64';

const WINDOWS_X64_ASSET_NAME = 'minikube-windows-amd64';
const WINDOWS_X64_ASSET_NAME = 'minikube-windows-amd64.exe';

const LINUX_X64_ASSET_NAME = 'minikube-linux-amd64';

Expand Down Expand Up @@ -128,7 +128,7 @@ export class MinikubeInstaller {
});
progress.report({ increment: 80 });
if (asset) {
const destFile = path.resolve(this.storagePath, isWindows() ? assetInfo.name + '.exe' : assetInfo.name);
const destFile = path.resolve(this.storagePath, assetInfo.name);
if (!fs.existsSync(this.storagePath)) {
fs.mkdirSync(this.storagePath);
}
Expand Down

0 comments on commit a82b030

Please sign in to comment.