Skip to content

Commit 70551eb

Browse files
committed
remove hardcoded home directory
1 parent e3c0f6c commit 70551eb

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

runners/lxc/i

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2

runners/lxc/lockfile

Whitespace-only changes.

src/lxc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class LXC {
2525
};
2626
}
2727
this._OS = os;
28-
this.LXC_ROOT_FS = `/home/simon/.local/share/lxc/${container}/rootfs`;
28+
this.LXC_ROOT_FS = `${process.env.HOME}/.local/share/lxc/${container}/rootfs`;
2929
// Check if Container exists
3030
exec(
3131
`bash ${__dirname}/../runners/lxc/lxc-check-container.bash ${container}`,

tests/all.test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
var cee = require("../lib/index");
22

3-
// var executor = new cee.LXC("cee");
4-
// executor.execute("echo 123", cee.languages.BASH);
5-
63
describe("Testing Basic Languages", () => {
74
test("Bash", () => {
85
return cee.execute("echo 123", cee.languages.BASH).then((response) => {
96
expect(response).toBe("123");
107
});
118
});
129
// test("LXC", () => {
10+
// var executor = new cee.LXC("cee");
1311
// return executor.execute("whoami", cee.languages.BASH).then((response) => {
1412
// expect(response).toBe("123");
1513
// });

0 commit comments

Comments
 (0)