We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8da8ac commit c54e6ceCopy full SHA for c54e6ce
src/lxc.ts
@@ -1,5 +1,4 @@
1
import { exec } from "child_process";
2
-import commandExists from "command-exists";
3
import { mkdirSync, writeFileSync, readFileSync, chmodSync } from "fs";
4
import { platform } from "os";
5
import Language from "./languages";
@@ -17,13 +16,7 @@ class LXC {
17
16
message: "LXCs only work on linux machines",
18
};
19
}
20
- // Check if LXC is installed
21
- if (!commandExists("lxc-attach")) {
22
- throw {
23
- name: "LXCNotInstalled",
24
- message: "LXC is not installed on your machine",
25
- };
26
- }
+
27
this._OS = os;
28
this.LXC_ROOT_FS = `${process.env.HOME}/.local/share/lxc/${container}/rootfs`;
29
// Check if Container exists
0 commit comments