Fix inverted exec prepend logic
Well that's embarrassing.
This commit is contained in:
parent
972922209d
commit
3769acfdc7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user