Files
setup-opentofu/wrapper/lib/tofu-bin.js
T
fc711fa910 Update Node.js runtime to 24 (#91)
Signed-off-by: Dawid Jóźwiak <5508474+Operativ@users.noreply.github.com>
Signed-off-by: James Humphries <james@james-humphries.co.uk>
Signed-off-by: Diogenes Fernandes <diofeher@gmail.com>
Co-authored-by: Dawid Jóźwiak <5508474+Operativ@users.noreply.github.com>
Co-authored-by: Diogenes Fernandes <diofeher@gmail.com>
2026-03-12 09:19:16 +00:00

18 lines
413 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* Copyright (c) OpenTofu
* SPDX-License-Identifier: MPL-2.0
*/
import os from 'os';
import path from 'path';
const tofuBin = (() => {
// If we're on Windows, then the executable ends with .exe
const exeSuffix = os.platform().startsWith('win') ? '.exe' : '';
return [process.env.TOFU_CLI_PATH, `tofu-bin${exeSuffix}`].join(path.sep);
})();
export default tofuBin;