Skip to content

Commit 6f3280d

Browse files
HALtheWiseEric Miller
authored andcommitted
Run subcommands under the esp user
1 parent 1bb1902 commit 6f3280d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dist/restore/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98411,7 +98411,7 @@ async function getCmdOutput(cmd, args = [], options = {}) {
9841198411
let stdout = "";
9841298412
let stderr = "";
9841398413
try {
98414-
await exec.exec(cmd, args, {
98414+
await exec.exec("su", ["esp", "-c", `${cmd} ${args.join(" ")}`], {
9841598415
silent: true,
9841698416
listeners: {
9841798417
stdout(data) {

dist/save/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98411,7 +98411,7 @@ async function getCmdOutput(cmd, args = [], options = {}) {
9841198411
let stdout = "";
9841298412
let stderr = "";
9841398413
try {
98414-
await exec.exec(cmd, args, {
98414+
await exec.exec("su", ["esp", "-c", `${cmd} ${args.join(" ")}`], {
9841598415
silent: true,
9841698416
listeners: {
9841798417
stdout(data) {

0 commit comments

Comments
 (0)