From b8bbc8a75439adcb820ea48ccdbc6c653765bd2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Thu, 1 Jun 2017 11:48:50 +0200 Subject: [PATCH] Initial Implementation --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 871863c..9932f2e 100644 --- a/main.go +++ b/main.go @@ -36,7 +36,9 @@ func main() { for j := 0; j < len(config.Scripts); j++ { for i := 0; i < len(timeFolders); i++ { path := "/etc/periodic/" + timeFolders[i] + "/" + config.Scripts[j].Name - if existsFile(path) { + exists, err := existsFile(path) + check(err) + if exists { os.Remove(path) } }