Initial Implementation
This commit is contained in:
parent
5b56f7ac5e
commit
b8bbc8a754
1 changed files with 3 additions and 1 deletions
4
main.go
4
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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue