Hotfix: 'deposits import' was ignoring its arguments in Linux builds

This commit is contained in:
Zahary Karadjov 2020-12-01 00:59:45 +02:00
parent d83cf6e8a4
commit 4328576e18
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 3 additions and 1 deletions

View File

@ -1432,7 +1432,9 @@ programMain:
#]#
of DepositsCmd.`import`:
let validatorKeysDir = config.importedDepositsDir.get:
let validatorKeysDir = if config.importedDepositsDir.isSome:
config.importedDepositsDir.get
else:
let cwd = os.getCurrentDir()
if dirExists(cwd / "validator_keys"):
InputDir(cwd / "validator_keys")