build-strap 5.0.0-dev.70 → 5.0.0-dev.71
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/env.js +1 -1
package/package.json
CHANGED
package/src/env.js
CHANGED
|
@@ -60,7 +60,7 @@ export const whichCmd = async (cmd) => {
|
|
|
60
60
|
}
|
|
61
61
|
return binPath;
|
|
62
62
|
};
|
|
63
|
-
export const cmdExists = async (cmd) => !!whichCmd(cmd);
|
|
63
|
+
export const cmdExists = async (cmd) => !!(await whichCmd(cmd));
|
|
64
64
|
export const readShellEnvVar = async (name, { refreshEnv = true, envFile = shellEnvFile(), shell = os.userInfo().shell, } = {}) => {
|
|
65
65
|
if (refreshEnv && (!envFile || !(await fs.pathExists(envFile)))) {
|
|
66
66
|
throw new Error(`Could not find shell env file: ${envFile}`);
|