diff --git a/backend/src/webhook/github.ts b/backend/src/webhook/github.ts index 31ce5ed94..fdeb0dfaf 100644 --- a/backend/src/webhook/github.ts +++ b/backend/src/webhook/github.ts @@ -15,11 +15,8 @@ export const githubWebhook = async (req: any, res: any): Promise => { if (payload.ref === `refs/heads/${CONFIG.WEBHOOK_GITHUB_BRANCH}`) { // spawn shell and detach process to allow killing of parent process in the update script const child = spawn( - '/bin/bash', - [ - path.join(__dirname, '../../../deployment/bare_metal/start.sh'), - CONFIG.WEBHOOK_GITHUB_BRANCH, - ], + path.join(__dirname, '../../../deployment/bare_metal/start.sh'), + [CONFIG.WEBHOOK_GITHUB_BRANCH], { detached: true, stdio: ['ignore', 'ignore', 'ignore'],