Skip to content

Commit 47cc3a9

Browse files
tegefaulkesCMCDragonkai
authored andcommitted
fix: prompt twice for password when creating agent
When doing `polykey agent start` and providing a nodepath that needed to be created. Then we were only prompted once for the password. [ci skip]
1 parent 2b8f96e commit 47cc3a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async function dirEmpty(fs: FileSystem, path): Promise<boolean> {
6868
return entries.length === 0;
6969
} catch (e) {
7070
if (e.code === 'ENOENT') {
71-
return false;
71+
return true;
7272
}
7373
throw e;
7474
}

0 commit comments

Comments
 (0)