mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-27 13:33:37 +00:00
style: fix semistandard lint errors
This commit is contained in:
parent
155af1502d
commit
50cae47766
2 changed files with 10 additions and 10 deletions
10
dist/index.js
vendored
10
dist/index.js
vendored
|
|
@ -38,13 +38,13 @@ async function downloadCLI (url) {
|
||||||
core.debug(`Downloading Terraform CLI from ${url}`);
|
core.debug(`Downloading Terraform CLI from ${url}`);
|
||||||
const pathToCLIZip = await tc.downloadTool(url);
|
const pathToCLIZip = await tc.downloadTool(url);
|
||||||
|
|
||||||
let pathToCLI = "";
|
let pathToCLI = '';
|
||||||
|
|
||||||
if (os.platform().startsWith('win')) {
|
if (os.platform().startsWith('win')) {
|
||||||
core.debug(`Terraform CLI Download Path is ${pathToCLIZip}`)
|
core.debug(`Terraform CLI Download Path is ${pathToCLIZip}`);
|
||||||
fixedPathToCLIZip = `${pathToCLIZip}.zip`
|
const fixedPathToCLIZip = `${pathToCLIZip}.zip`;
|
||||||
io.mv(pathToCLIZip, fixedPathToCLIZip)
|
io.mv(pathToCLIZip, fixedPathToCLIZip);
|
||||||
core.debug(`Moved download to ${fixedPathToCLIZip}`)
|
core.debug(`Moved download to ${fixedPathToCLIZip}`);
|
||||||
pathToCLI = await tc.extractZip(fixedPathToCLIZip);
|
pathToCLI = await tc.extractZip(fixedPathToCLIZip);
|
||||||
} else {
|
} else {
|
||||||
pathToCLI = await tc.extractZip(pathToCLIZip);
|
pathToCLI = await tc.extractZip(pathToCLIZip);
|
||||||
|
|
|
||||||
|
|
@ -32,13 +32,13 @@ async function downloadCLI (url) {
|
||||||
core.debug(`Downloading Terraform CLI from ${url}`);
|
core.debug(`Downloading Terraform CLI from ${url}`);
|
||||||
const pathToCLIZip = await tc.downloadTool(url);
|
const pathToCLIZip = await tc.downloadTool(url);
|
||||||
|
|
||||||
let pathToCLI = "";
|
let pathToCLI = '';
|
||||||
|
|
||||||
if (os.platform().startsWith('win')) {
|
if (os.platform().startsWith('win')) {
|
||||||
core.debug(`Terraform CLI Download Path is ${pathToCLIZip}`)
|
core.debug(`Terraform CLI Download Path is ${pathToCLIZip}`);
|
||||||
fixedPathToCLIZip = `${pathToCLIZip}.zip`
|
const fixedPathToCLIZip = `${pathToCLIZip}.zip`;
|
||||||
io.mv(pathToCLIZip, fixedPathToCLIZip)
|
io.mv(pathToCLIZip, fixedPathToCLIZip);
|
||||||
core.debug(`Moved download to ${fixedPathToCLIZip}`)
|
core.debug(`Moved download to ${fixedPathToCLIZip}`);
|
||||||
pathToCLI = await tc.extractZip(fixedPathToCLIZip);
|
pathToCLI = await tc.extractZip(fixedPathToCLIZip);
|
||||||
} else {
|
} else {
|
||||||
pathToCLI = await tc.extractZip(pathToCLIZip);
|
pathToCLI = await tc.extractZip(pathToCLIZip);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue