Initial Implementation
This commit is contained in:
parent
5b56f7ac5e
commit
b8bbc8a754
4
main.go
4
main.go
|
@ -36,7 +36,9 @@ func main() {
|
||||||
for j := 0; j < len(config.Scripts); j++ {
|
for j := 0; j < len(config.Scripts); j++ {
|
||||||
for i := 0; i < len(timeFolders); i++ {
|
for i := 0; i < len(timeFolders); i++ {
|
||||||
path := "/etc/periodic/" + timeFolders[i] + "/" + config.Scripts[j].Name
|
path := "/etc/periodic/" + timeFolders[i] + "/" + config.Scripts[j].Name
|
||||||
if existsFile(path) {
|
exists, err := existsFile(path)
|
||||||
|
check(err)
|
||||||
|
if exists {
|
||||||
os.Remove(path)
|
os.Remove(path)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue