summaryrefslogtreecommitdiff
path: root/install/utils.go
diff options
context:
space:
mode:
authorEyal Posener <[email protected]>2019-11-24 00:42:07 +0200
committerEyal Posener <[email protected]>2019-11-24 00:42:07 +0200
commite8cb4f352f72a955ce01600ab09d1415eaf8a5aa (patch)
tree5f4559d5172096d262630a0bec16735d34461cd1 /install/utils.go
parent85542e6d466253476d3b2c0704d902509fcb4840 (diff)
fix script change
Diffstat (limited to 'install/utils.go')
-rw-r--r--install/utils.go2
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)
}