mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-13 07:02:35 +00:00
9 lines
305 B
JavaScript
9 lines
305 B
JavaScript
const os = require('os');
|
|
const path = require('path');
|
|
|
|
module.exports = (() => {
|
|
// If we're on Windows, then the executable ends with .exe
|
|
const exeSuffix = os.platform().startsWith('win') ? '.exe' : '';
|
|
|
|
return [process.env.TERRAFORM_CLI_PATH, `terraform-bin${exeSuffix}`].join(path.sep);
|
|
})();
|