From 7fbfe3159a22857ddb09d8706c577a39dfd2b017 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 9 Apr 2019 16:19:44 +0200 Subject: [PATCH] dont assume bash when creating rest users --- src/rest/creator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rest/creator.js b/src/rest/creator.js index ca414c097c..5330f88bbf 100644 --- a/src/rest/creator.js +++ b/src/rest/creator.js @@ -63,9 +63,9 @@ module.exports = class RestSessionCreator { const registerCmd = `./scripts/register_new_matrix_user ${registerArgs.join(' ')}`; const allCmds = [ `cd ${this.synapseSubdir}`, - "source env/bin/activate", + ". env/bin/activate", registerCmd - ].join(';'); + ].join('&&'); await execAsync(allCmds, {cwd: this.cwd, encoding: 'utf-8'}); }