fixed "mozilla-release/obj-x86_64-pc-linux-gnu/dist/bin/browser/chrome/browser/content/browser/preferences/dialogs/addEngine.js" does not exist bug related to replace-all, I dont even want to know why is it doing that, jesus christ
This commit is contained in:
parent
3d08b492ac
commit
ffa413fe3c
2 changed files with 31 additions and 15 deletions
|
@ -32,15 +32,24 @@ func applyReplaceAllPatch(rootPath string, modifications []string) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if d.IsDir() {
|
||||
// Skip patcher's own directory and subdirectories
|
||||
if strings.HasPrefix(path, patcherDir) {
|
||||
|
||||
// Skip patcher's own dir and subdirs
|
||||
if strings.HasPrefix(path, patcherDir) {
|
||||
if d.IsDir() {
|
||||
return fs.SkipDir
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// Skip patcher's own files
|
||||
if strings.HasPrefix(path, patcherDir) {
|
||||
|
||||
// Skip any obj-* folders inside mozilla-release
|
||||
if strings.Contains(path, "mozilla-release/obj-") {
|
||||
if d.IsDir() {
|
||||
return fs.SkipDir
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
if d.IsDir() {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue