Skip to content

Commit 7e80d1f

Browse files
fix(index): fix rename gh binary
1 parent 9f5a6cf commit 7e80d1f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ describe.each(['darwin', 'win32', 'linux'])('when OS is %p', (os) => {
5757
expect(extract).toHaveBeenCalledWith(pathToTarball);
5858

5959
expect(mockedExec.exec).toHaveBeenCalledWith('mv', [
60-
expect.stringContaining(`/bin/${cliName}`),
60+
expect.stringContaining('/bin/gh'),
6161
expect.stringContaining(`/bin/${cliName}`),
6262
]);
6363

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export async function run() {
4040

4141
// Rename the binary
4242
if (cliName !== 'gh') {
43-
await exec('mv', [getBinaryPath(binaryDirectory, cliName), binaryPath]);
43+
await exec('mv', [getBinaryPath(binaryDirectory, 'gh'), binaryPath]);
4444
}
4545
}
4646

0 commit comments

Comments
 (0)