Fix inverted exec prepend logic

Well that's embarrassing.
This commit is contained in:
C. McEnroe 2021-09-25 03:31:14 +00:00
parent 972922209d
commit 3769acfdc7
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ void serviceStart(struct Service *service) {
}
int n = snprintf(
&command[len], sizeof(command) - len, "%s%s",
(service->command[strcspn(service->command, ";&|()")] ? "exec " : ""),
(service->command[strcspn(service->command, ";&|()")] ? "" : "exec "),
service->command
);
assert(n > 0);