mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 12:26:35 +00:00
Check if /proc/version
exists (#9438)
This commit is contained in:
parent
5ad95cad90
commit
9fbd594f37
@ -19,7 +19,9 @@ const bothBuilds = (createConfigFunc, params) => [
|
|||||||
createConfigFunc({ ...params, latestBuild: false }),
|
createConfigFunc({ ...params, latestBuild: false }),
|
||||||
];
|
];
|
||||||
|
|
||||||
const isWsl = fs
|
const isWsl =
|
||||||
|
fs.existsSync("/proc/version") &&
|
||||||
|
fs
|
||||||
.readFileSync("/proc/version", "utf-8")
|
.readFileSync("/proc/version", "utf-8")
|
||||||
.toLocaleLowerCase()
|
.toLocaleLowerCase()
|
||||||
.includes("microsoft");
|
.includes("microsoft");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user