@govuk-pay/cli 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/legacy.js +3 -1
package/package.json
CHANGED
package/src/commands/legacy.js
CHANGED
|
@@ -44,7 +44,9 @@ async function proxyArrayOfArgumentsToLegacyCli(argsToPassOn) {
|
|
|
44
44
|
const rbenvCommand = process.env.PAY_CLI_RBENV_COMMAND ?? 'rbenv';
|
|
45
45
|
const shellCommand = process.env.PAY_CLI_SHELL_COMMAND ?? 'zsh';
|
|
46
46
|
const whichRbenvResult = await (0, payCliExec_1.execAndReturnIO)(`which ${rbenvCommand}`);
|
|
47
|
-
const whichBundlerResult = await (0, payCliExec_1.execAndReturnIO)(`${rbenvCommand} exec
|
|
47
|
+
const whichBundlerResult = await (0, payCliExec_1.execAndReturnIO)(`${rbenvCommand} exec bundle --version`, {
|
|
48
|
+
cwd: path.join(constants_1.rootDir, 'legacy-ruby-cli')
|
|
49
|
+
});
|
|
48
50
|
if (whichRbenvResult.exitCode !== 0) {
|
|
49
51
|
console.error('You need rbenv installed before you can continue.');
|
|
50
52
|
process.exit(12);
|