summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--go.mod2
-rw-r--r--go.sum2
-rw-r--r--install/utils.go2
3 files changed, 4 insertions, 2 deletions
diff --git a/go.mod b/go.mod
index d356498..8e261a0 100644
--- a/go.mod
+++ b/go.mod
@@ -2,7 +2,7 @@ module github.com/posener/complete/v2
require (
github.com/hashicorp/go-multierror v1.0.0
- github.com/posener/script v1.0.1
+ github.com/posener/script v1.0.3
github.com/stretchr/testify v1.4.0
)
diff --git a/go.sum b/go.sum
index c089edc..82f8a51 100644
--- a/go.sum
+++ b/go.sum
@@ -12,6 +12,8 @@ github.com/posener/script v1.0.0 h1:/mJqplLNbKgJBeOElS00vDU9CG5QaN+qwp/o+lQAoDc=
github.com/posener/script v1.0.0/go.mod h1:Rg3ijooqulo05aGLyGsHoLmIOUzHUVK19WVgrYBPU/E=
github.com/posener/script v1.0.1 h1:MIYijfAGNnzPcH9zTFi+s8iiCgSfv90uTM5QnaSbajA=
github.com/posener/script v1.0.1/go.mod h1:Rg3ijooqulo05aGLyGsHoLmIOUzHUVK19WVgrYBPU/E=
+github.com/posener/script v1.0.3 h1:RZczCsHvWDaqWzRguPDbOyiGx63LqbXg/evCKqBQkec=
+github.com/posener/script v1.0.3/go.mod h1:Rg3ijooqulo05aGLyGsHoLmIOUzHUVK19WVgrYBPU/E=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
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)
}