Check for file conflicts before install

Fixes #88
This commit is contained in:
Ettore Di Giacinto
2021-07-29 10:14:05 +02:00
parent 9cb6e65bb6
commit 9aa3159787
3 changed files with 76 additions and 1 deletions

10
pkg/helpers/slice.go Normal file
View File

@@ -0,0 +1,10 @@
package helpers
func Contains(s []string, e string) bool {
for _, a := range s {
if a == e {
return true
}
}
return false
}