Skip to content
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.

fix: keystore dir definition #509

Merged
merged 1 commit into from
Nov 6, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ethereum_clients/client_plugins/geth.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
let platform = 'windows'
let dataDir = `${process.env.APPDATA}/Ethereum`
let keystoreDir = `${dataDir}/keystore`

// Platform specific initialization
switch (process.platform) {
case 'win32': {
platform = 'windows'
dataDir = `${process.env.APPDATA}\\Ethereum`
keystoreDir = `${dataDir}\\keystore`
break
}
case 'linux': {
Expand All @@ -24,6 +22,9 @@ switch (process.platform) {
}
}

const keystoreDir =
process.platform === 'win32' ? `${dataDir}\\keystore` : `${dataDir}/keystore`

const findIpcPathInLogs = logs => {
let ipcPath
for (const logPart of logs) {
Expand Down