Ditch "sh -c" since we have no sh

This commit is contained in:
2025-06-27 18:28:21 +02:00
parent 26ec0e38b2
commit 845230529c
3 changed files with 5 additions and 2 deletions

3
crontabd/build.sh Normal file
View File

@@ -0,0 +1,3 @@
nssm stop crontabd
go build .
nssm start crontabd

BIN
crontabd/crontabd.exe (Stored with Git LFS)

Binary file not shown.

View File

@@ -119,7 +119,7 @@ func loadCronJobs() error {
func createJobFunc(job CronJob) func() {
return func() {
cmd := exec.Command("sh", "-c", job.Command)
cmd := exec.Command(job.Command)
output, err := cmd.CombinedOutput()
if err != nil {
logger.Error("Failed to execute command '%s': %v", job.Command, err)