mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Fix parent bug.
This commit is contained in:
parent
e5db61ebd2
commit
1bc3b0cad8
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ class KFiles {
|
|||
|
||||
fun findDotDir(startDir: File) : File {
|
||||
var result = startDir
|
||||
while (result != null && ! File(result, KOBALT_DOT_DIR).exists()) {
|
||||
while (result != null && result.parentFile != null && ! File(result, KOBALT_DOT_DIR).exists()) {
|
||||
result = result.parentFile
|
||||
}
|
||||
if (result == null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue