about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-09-25 03:31:14 +0000
committerJune McEnroe <june@causal.agency>2021-09-25 03:31:14 +0000
commit3769acfdc7e95a8df66eaa91e18695b656a32474 (patch)
tree640f018127635dc6e12a6cea917909d517705149
parentRemove freenode (diff)
downloadcatsit-3769acfdc7e95a8df66eaa91e18695b656a32474.tar.gz
catsit-3769acfdc7e95a8df66eaa91e18695b656a32474.zip
Fix inverted exec prepend logic
Well that's embarrassing.
Diffstat (limited to '')
-rw-r--r--service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/service.c b/service.c
index 38049ff..c7103f0 100644
--- a/service.c
+++ b/service.c
@@ -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);