Skip to content

Commit 96685d0

Browse files
committed
fix(mcl/host_info): awk command syntax changed
1 parent 9776e62 commit 96685d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/mcl/src/src/mcl/commands/host_info.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ string getDistribution()
395395
if (exists("/etc/os-release"))
396396
{
397397
foreach (line; execute([
398-
"awk", "-F", "=", "'/^NAME=/ {print $2}'", "/etc/os-release"
398+
"awk", "-F", "=", "/^NAME=/ {print $2}", "/etc/os-release"
399399
], false).split("\n"))
400400
{
401401
distribution = line;
@@ -418,7 +418,7 @@ string getDistributionVersion()
418418
if (exists("/etc/os-release"))
419419
{
420420
foreach (line; execute([
421-
"awk", "-F", "=", "'/^VERSION=/ {print $2}'", "/etc/os-release"
421+
"awk", "-F", "=", "/^VERSION=/ {print $2}", "/etc/os-release"
422422
], false).split("\n"))
423423
{
424424
distributionVersion = line.strip("\"");

0 commit comments

Comments
 (0)