buninu 0.2.4 → 0.2.5
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/CHANGELOG.md +5 -0
- package/bin/init.js +7 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/bin/init.js
CHANGED
|
@@ -258,7 +258,7 @@ async function detectEnvironment() {
|
|
|
258
258
|
return {
|
|
259
259
|
name: "linux",
|
|
260
260
|
shell:
|
|
261
|
-
await findCommand(process.env.SHELL) ||
|
|
261
|
+
// await findCommand(process.env.SHELL) ||
|
|
262
262
|
Bun.which("bash") ||
|
|
263
263
|
Bun.which("sh") ||
|
|
264
264
|
"/bin/sh",
|
|
@@ -269,10 +269,11 @@ async function detectEnvironment() {
|
|
|
269
269
|
return {
|
|
270
270
|
name: "android",
|
|
271
271
|
shell:
|
|
272
|
-
await findCommand(process.env.SHELL) ||
|
|
272
|
+
// await findCommand(process.env.SHELL) ||
|
|
273
273
|
(await pathExists("/system/bin/sh") ? "/system/bin/sh" : null) ||
|
|
274
|
+
Bun.which("bash") ||
|
|
274
275
|
Bun.which("sh") ||
|
|
275
|
-
"sh",
|
|
276
|
+
"/bin/sh",
|
|
276
277
|
};
|
|
277
278
|
}
|
|
278
279
|
|
|
@@ -280,7 +281,7 @@ async function detectEnvironment() {
|
|
|
280
281
|
return {
|
|
281
282
|
name: "macos",
|
|
282
283
|
shell:
|
|
283
|
-
await findCommand(process.env.SHELL) ||
|
|
284
|
+
// await findCommand(process.env.SHELL) ||
|
|
284
285
|
Bun.which("zsh") ||
|
|
285
286
|
Bun.which("bash") ||
|
|
286
287
|
Bun.which("sh") ||
|
|
@@ -292,7 +293,7 @@ async function detectEnvironment() {
|
|
|
292
293
|
return {
|
|
293
294
|
name: "linux",
|
|
294
295
|
shell:
|
|
295
|
-
await findCommand(process.env.SHELL) ||
|
|
296
|
+
// await findCommand(process.env.SHELL) ||
|
|
296
297
|
Bun.which("bash") ||
|
|
297
298
|
Bun.which("sh") ||
|
|
298
299
|
"/bin/sh",
|
|
@@ -302,7 +303,7 @@ async function detectEnvironment() {
|
|
|
302
303
|
return {
|
|
303
304
|
name: `unix:${process.platform}`,
|
|
304
305
|
shell:
|
|
305
|
-
await findCommand(process.env.SHELL) ||
|
|
306
|
+
// await findCommand(process.env.SHELL) ||
|
|
306
307
|
Bun.which("bash") ||
|
|
307
308
|
Bun.which("sh") ||
|
|
308
309
|
"/bin/sh",
|
package/package.json
CHANGED