Initial Implementation

This commit is contained in:
Jan Christian Grünhage 2017-06-01 11:48:50 +02:00
parent 5b56f7ac5e
commit b8bbc8a754
Signed by: jcgruenhage
GPG key ID: 321A67D9EE8BC3E1

View file

@ -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)
}
}