core: fixup execAndGet not running correctly

This commit is contained in:
Vaxry 2024-12-15 21:58:26 +00:00
parent 4d5b68b7ad
commit 0e38c982d7

View file

@ -15,7 +15,7 @@ bool vectorDeltaLessThan(const Vector2D& a, const Vector2D& b, const Vector2D& d
} }
std::string execAndGet(const char* cmd) { std::string execAndGet(const char* cmd) {
CProcess proc("/bin/bash", {cmd}); CProcess proc("/bin/bash", {"-c", cmd});
if (!proc.runSync()) if (!proc.runSync())
return ""; return "";
return proc.stdOut(); return proc.stdOut();