fixed '--skip-patch-update' flag

This commit is contained in:
partisan 2024-12-13 14:31:28 +01:00
parent e99e7bf437
commit 504fc59573
2 changed files with 18 additions and 10 deletions

View file

@ -29,7 +29,7 @@ func ApplyPatches(sourcePath string, patchesRepo string, patchesPath string, pat
}
fmt.Println("Patches repository cloned successfully.")
} else {
if skipUpdateRepo {
if !skipUpdateRepo {
// If the directory exists, fetch and pull the latest changes
fmt.Println("Patches directory already exists. Fetching latest changes.")
cmdFetch := exec.Command("git", "fetch", "--all")