diff options
Diffstat (limited to 'install/utils.go')
| -rw-r--r-- | install/utils.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/install/utils.go b/install/utils.go index 6748613..1595331 100644 --- a/install/utils.go +++ b/install/utils.go @@ -27,7 +27,7 @@ func removeFromFile(path string, line string) error { return fmt.Errorf("creating backup file: %s", err) } - tmp, err := script.Cat(path).Modify(script.Grep{Re: regexp.MustCompile("^" + line + "$"), Invert: true}).ToTempFile() + tmp, err := script.Cat(path).Modify(script.Grep{Re: regexp.MustCompile("^" + line + "$"), Inverse: true}).ToTempFile() if err != nil { return fmt.Errorf("failed remove: %s", err) } |
