Skip to content

Commit

Permalink
core: fixup execAndGet not running correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Dec 15, 2024
1 parent 4d5b68b commit 0e38c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/MiscFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 0e38c98

Please sign in to comment.