diff options
| author | Eyal Posener <[email protected]> | 2017-05-06 21:04:11 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-05-06 21:04:11 +0300 |
| commit | 2b6aed2b1e974a733c0dc614a9617c33a54c208c (patch) | |
| tree | d9f9de0148c079071095e96c1033c39f0c898de1 /install | |
| parent | 07b98cb91243293e26564058a78f28b83aa81cd4 (diff) | |
| parent | 9963a854946be0603f9e79ccba0a8b2688b20053 (diff) | |
Merge pull request #3 from posener/predicate-as-function-type
Predicate as function type
Diffstat (limited to 'install')
| -rw-r--r-- | install/home.go | 4 | ||||
| -rw-r--r-- | install/root.go | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/install/home.go b/install/home.go index 1850a05..825bdb7 100644 --- a/install/home.go +++ b/install/home.go @@ -5,10 +5,10 @@ import ( "errors" "fmt" "io" + "io/ioutil" "os" "os/user" "path/filepath" - "io/ioutil" ) type home struct{} @@ -150,4 +150,4 @@ func copyFile(src string, dst string) error { defer out.Close() _, err = io.Copy(out, in) return err -}
\ No newline at end of file +} diff --git a/install/root.go b/install/root.go index b128a0d..66e23b3 100644 --- a/install/root.go +++ b/install/root.go @@ -25,6 +25,5 @@ func (root) Uninstall(cmd string, bin string) error { } func getBashCompletionDLink(cmd string) string { - return "/etc/bash_completion.d/"+cmd + return "/etc/bash_completion.d/" + cmd } - |
