Merge pull request #7 from MindfulMinun/next

PATCH: use bash instead of sh
This commit is contained in:
mindfulminun authored and GitHub committed 2024-02-11 22:27:15 -06:00
commit b3dd80376b
1 file changed
+1 -1
+1 -1
View File
@@ -121,7 +121,7 @@ export class Troopa implements PromiseLike<Deno.CommandOutput> {
*/ */
export default function koopa(opts: Partial<ShellSpawnerOpts> = {}) { export default function koopa(opts: Partial<ShellSpawnerOpts> = {}) {
const actualOpts: ShellSpawnerOpts = { const actualOpts: ShellSpawnerOpts = {
shell: 'sh', shell: 'bash',
shellArgs: cmd => ['-c', `${opts.prefix || 'set -euo pipefail'}; ${cmd}`], shellArgs: cmd => ['-c', `${opts.prefix || 'set -euo pipefail'}; ${cmd}`],
autospawn: true, autospawn: true,
...opts ...opts