mirror of
https://github.com/fccview/cronmaster.git
synced 2025-12-25 15:08:59 -05:00
Compare commits
3 Commits
feature/mu
...
BUG-4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8cfc000893 | ||
|
|
1dde8f839e | ||
|
|
2b7d591a95 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -12,3 +12,4 @@ node_modules
|
||||
.DS_Store
|
||||
.cursorignore
|
||||
tsconfig.tsbuildinfo
|
||||
docker-compose.test.yml
|
||||
@@ -49,7 +49,7 @@ If you find my projects helpful and want to fuel my late-night coding sessions w
|
||||
```bash
|
||||
services:
|
||||
cronjob-manager:
|
||||
image: ghcr.io/fccview/cronmaster:2.3.0
|
||||
image: ghcr.io/fccview/cronmaster:1.3.0
|
||||
container_name: cronmaster
|
||||
user: "root"
|
||||
ports:
|
||||
|
||||
@@ -53,7 +53,9 @@ export const pauseJobInLines = (lines: string[], targetJobIndex: number): string
|
||||
currentJobIndex++;
|
||||
} else {
|
||||
newCronEntries.push(line);
|
||||
i++;
|
||||
newCronEntries.push(lines[i + 1]);
|
||||
i += 2;
|
||||
currentJobIndex++;
|
||||
}
|
||||
} else {
|
||||
newCronEntries.push(line);
|
||||
@@ -295,8 +297,10 @@ export const deleteJobInLines = (lines: string[], targetJobIndex: number): strin
|
||||
) {
|
||||
if (currentJobIndex !== targetJobIndex) {
|
||||
newCronEntries.push(line);
|
||||
newCronEntries.push(lines[i + 1]);
|
||||
}
|
||||
i++;
|
||||
i += 2;
|
||||
currentJobIndex++;
|
||||
} else {
|
||||
newCronEntries.push(line);
|
||||
i++;
|
||||
@@ -385,8 +389,10 @@ export const updateJobInLines = (
|
||||
i += 2;
|
||||
} else {
|
||||
newCronEntries.push(line);
|
||||
i++;
|
||||
newCronEntries.push(lines[i + 1]);
|
||||
i += 2;
|
||||
}
|
||||
currentJobIndex++;
|
||||
} else {
|
||||
newCronEntries.push(line);
|
||||
i++;
|
||||
|
||||
Reference in New Issue
Block a user