We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f84ca73 commit fc8aafcCopy full SHA for fc8aafc
server/src/util/sh.ts
@@ -3,9 +3,9 @@ import * as ChildProcess from 'child_process'
3
/**
4
* Execute the following sh program.
5
*/
6
-export function execShellScript(body: string): Promise<string> {
+export function execShellScript(body: string, cmd = 'bash'): Promise<string> {
7
const args = ['-c', body]
8
- const process = ChildProcess.spawn('bash', args)
+ const process = ChildProcess.spawn(cmd, args)
9
10
return new Promise((resolve, reject) => {
11
let output = ''
0 commit comments