forked from mirrors/amnezia-wg-easy
wip
This commit is contained in:
parent
01f2724518
commit
0c3217def0
3 changed files with 31 additions and 19 deletions
|
@ -44,7 +44,9 @@ module.exports = class Util {
|
|||
}
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
childProcess.exec(cmd, (err, stdout) => {
|
||||
childProcess.exec(cmd, {
|
||||
shell: 'bash',
|
||||
}, (err, stdout) => {
|
||||
if (err) return reject(err);
|
||||
return resolve(String(stdout).trim());
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue