mirror of
https://github.com/spf13/cobra
synced 2024-11-25 07:07:15 +00:00
checking if project dir is not empty on init fixed
This commit is contained in:
parent
7c674d9e72
commit
806b2bb86a
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ func initializePath(path string) {
|
||||||
er(err)
|
er(err)
|
||||||
}
|
}
|
||||||
} else { // If path exists and is not empty don't use it
|
} else { // If path exists and is not empty don't use it
|
||||||
empty, err := exists(path)
|
empty, err := isEmpty(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
er(err)
|
er(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue