cleanup filepath, no chdir
This commit is contained in:
parent
f3e356f314
commit
b28d6f2716
@ -20,10 +20,11 @@ func verifyTideliftYamlExists(directory string) bool {
|
||||
}
|
||||
|
||||
func passesMinimumRequirements(directory string) string {
|
||||
os.Chdir(directory)
|
||||
filename, _ := filepath.Abs("./.tidelift.yml")
|
||||
|
||||
filename, _ := filepath.Abs(fmt.Sprintf("%s/.tidelift.yml", directory))
|
||||
|
||||
yamlFile, err := ioutil.ReadFile(filename)
|
||||
|
||||
check(err)
|
||||
|
||||
type TideliftYML struct {
|
||||
@ -34,6 +35,7 @@ func passesMinimumRequirements(directory string) string {
|
||||
var yml TideliftYML
|
||||
|
||||
err = yaml.Unmarshal(yamlFile, &yml)
|
||||
|
||||
check(err)
|
||||
|
||||
// Check for Team name
|
||||
|
Loading…
Reference in New Issue
Block a user