From 0e38c982d73e400ece8f6e710e1d67db39c8c2f2 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 15 Dec 2024 21:58:26 +0000 Subject: [PATCH] core: fixup execAndGet not running correctly --- src/helpers/MiscFunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp index 433553b..80c543f 100644 --- a/src/helpers/MiscFunctions.cpp +++ b/src/helpers/MiscFunctions.cpp @@ -15,7 +15,7 @@ bool vectorDeltaLessThan(const Vector2D& a, const Vector2D& b, const Vector2D& d } std::string execAndGet(const char* cmd) { - CProcess proc("/bin/bash", {cmd}); + CProcess proc("/bin/bash", {"-c", cmd}); if (!proc.runSync()) return ""; return proc.stdOut();