14 lines
283 B
JavaScript
14 lines
283 B
JavaScript
/* eslint-disable no-undef */
|
|
const { execSync } = require('child_process');
|
|
|
|
/**
|
|
* Checks that the vault cli is available
|
|
*/
|
|
exports.checkVaultCli = async () => {
|
|
try {
|
|
execSync('which vault');
|
|
} catch (e) {
|
|
throw new Error('vault does not exist on the path');
|
|
}
|
|
};
|