Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-ainsel committed Jul 10, 2024
1 parent e2bb69e commit 27f38b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions actions/setup-ninja/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32011,7 +32011,7 @@ try {
const destDir = core.getInput('destination') || 'ninja-build'
const proxyServer = core.getInput('http_proxy')

const [error, platform] = selectPlatforn(core.getInput('platform'));
const [error, platform] = selectPlatform(core.getInput('platform'));
if (error) throw error

const url = new URL(`https://github.com/ninja-build/ninja/releases/download/v${version}/ninja-${platform}.zip`)
Expand Down Expand Up @@ -32054,12 +32054,12 @@ try {

core.addPath(fullDestDir)
console.log(`added '${fullDestDir}' to PATH`)

const result = spawn(ninjaName, ['--version'], {encoding: 'utf8'})
if (result.error) throw error

const installedVersion = result.stdout.trim()

console.log(`$ ${ninjaName} --version`)
console.log(installedVersion)

Expand Down
6 changes: 3 additions & 3 deletions actions/setup-ninja/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ try {
const destDir = core.getInput('destination') || 'ninja-build'
const proxyServer = core.getInput('http_proxy')

const [error, platform] = selectPlatforn(core.getInput('platform'));
const [error, platform] = selectPlatform(core.getInput('platform'));
if (error) throw error

const url = new URL(`https://github.com/ninja-build/ninja/releases/download/v${version}/ninja-${platform}.zip`)
Expand Down Expand Up @@ -74,12 +74,12 @@ try {

core.addPath(fullDestDir)
console.log(`added '${fullDestDir}' to PATH`)

const result = spawn(ninjaName, ['--version'], {encoding: 'utf8'})
if (result.error) throw error

const installedVersion = result.stdout.trim()

console.log(`$ ${ninjaName} --version`)
console.log(installedVersion)

Expand Down

0 comments on commit 27f38b2

Please sign in to comment.