mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -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 {
|
fun findDotDir(startDir: File) : File {
|
||||||
var result = startDir
|
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
|
result = result.parentFile
|
||||||
}
|
}
|
||||||
if (result == null) {
|
if (result == null) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue