Browse Source

Fix ignore paths

feature/create-install-pkgs
Tovi Jaeschke-Rogers 3 years ago
parent
commit
620f5e03ab
3 changed files with 11 additions and 2 deletions
  1. +1
    -0
      .gitignore
  2. +3
    -2
      Client/Filesystem/Config.go
  3. +7
    -0
      Variables/Variables_unix.go

+ 1
- 0
.gitignore View File

@ -3,3 +3,4 @@
*.tar.gz
tjpkg
test.go
lfs_packages

+ 3
- 2
Client/Filesystem/Config.go View File

@ -2,6 +2,7 @@ package Filesystem
import (
"regexp"
"strings"
"PackageManager/Variables"
)
@ -33,7 +34,7 @@ func InitPruneRegex() error {
)
for _, s = range Variables.PruneRegexPaths {
r, err = regexp.Compile(s)
r, err = regexp.Compile(strings.Replace(s, "^/", "^"+Variables.RootDir, 1))
if err != nil {
return err
}
@ -50,7 +51,7 @@ func InitIgnoreRegex() error {
)
for _, s = range Variables.IgnoreRegexPaths {
r, err = regexp.Compile(s)
r, err = regexp.Compile(strings.Replace(s, "^/", "^"+Variables.RootDir, 1))
if err != nil {
return err
}


Variables/Variables.go → Variables/Variables_unix.go View File


Loading…
Cancel
Save