Skip to content

Commit c54e6ce

Browse files
committed
removed unused import in lxc class
1 parent f8da8ac commit c54e6ce

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/lxc.ts

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { exec } from "child_process";
2-
import commandExists from "command-exists";
32
import { mkdirSync, writeFileSync, readFileSync, chmodSync } from "fs";
43
import { platform } from "os";
54
import Language from "./languages";
@@ -17,13 +16,7 @@ class LXC {
1716
message: "LXCs only work on linux machines",
1817
};
1918
}
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-
}
19+
2720
this._OS = os;
2821
this.LXC_ROOT_FS = `${process.env.HOME}/.local/share/lxc/${container}/rootfs`;
2922
// Check if Container exists

0 commit comments

Comments
 (0)