summaryrefslogtreecommitdiff
path: root/src/helpers/MiscFunctions.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-11-10 22:53:11 +0000
committerVaxry <vaxry@vaxry.net>2024-11-10 22:53:11 +0000
commitc10739e6e35c30ef5f273bfe5d219d361a31e226 (patch)
treef8412ac2c1bbcf4f74b4a997a3b8c8a351557101 /src/helpers/MiscFunctions.cpp
parent9e628067fc54851dc9138c2882abb21f72c5a5a6 (diff)
core: fixup execAndGet
fixes #8410
Diffstat (limited to 'src/helpers/MiscFunctions.cpp')
-rw-r--r--src/helpers/MiscFunctions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp
index 75154796..7b4d63a7 100644
--- a/src/helpers/MiscFunctions.cpp
+++ b/src/helpers/MiscFunctions.cpp
@@ -585,7 +585,7 @@ float vecToRectDistanceSquared(const Vector2D& vec, const Vector2D& p1, const Ve
// Execute a shell command and get the output
std::string execAndGet(const char* cmd) {
- CProcess proc("/bin/sh", {cmd});
+ CProcess proc("/bin/sh", {"-c", cmd});
if (!proc.runSync())
return "error";