Commit 95e5171
Changed files (3)
build/core.cjs
@@ -417,7 +417,7 @@ var defaults = resolveDefaults({
verbose: false,
env: import_node_process2.default.env,
sync: false,
- shell: true,
+ shell: import_node_process2.default.env.SHELL || true,
stdio: "pipe",
nothrow: false,
quiet: false,
@@ -968,7 +968,9 @@ function useBash() {
$.quote = import_util.quote;
}
try {
+ const { shell } = $;
useBash();
+ if ((0, import_util.isString)(shell)) $.shell = shell;
} catch (err) {
}
function checkShell() {
src/core.ts
@@ -139,7 +139,7 @@ export const defaults: Options = resolveDefaults({
verbose: false,
env: process.env,
sync: false,
- shell: true,
+ shell: process.env.SHELL || true,
stdio: 'pipe',
nothrow: false,
quiet: false,
@@ -877,7 +877,9 @@ export function useBash() {
}
try {
+ const { shell } = $
useBash()
+ if (isString(shell)) $.shell = shell
} catch (err) {}
function checkShell() {
.size-limit.json
@@ -15,7 +15,7 @@
"README.md",
"LICENSE"
],
- "limit": "121.67 kB",
+ "limit": "121.80 kB",
"brotli": false,
"gzip": false
},
@@ -29,7 +29,7 @@
"build/globals.js",
"build/deno.js"
],
- "limit": "812.21 kB",
+ "limit": "812.35 kB",
"brotli": false,
"gzip": false
},
@@ -62,7 +62,7 @@
"README.md",
"LICENSE"
],
- "limit": "868.20 kB",
+ "limit": "868.35 kB",
"brotli": false,
"gzip": false
}