Skip to content

Commit 2cf95c9

Browse files
committed
fix upgrade command
1 parent 9763b73 commit 2cf95c9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ To install or update LODA, please follow the [installation instructions](https:/
77
### Bugfixes
88

99
* Fix segmentation fault during mining
10+
* Fix `upgrade` command
1011

1112
## v25.7.12
1213

src/sys/setup.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,15 +494,15 @@ std::string Setup::getExecutable(const std::string& suffix) {
494494
#ifdef _WIN64
495495
exe = ".exe";
496496
#endif
497-
return LODA_HOME + "bin" + FILE_SEP + "loda" + suffix + exe;
497+
return getLodaHome() + "bin" + FILE_SEP + "loda" + suffix + exe;
498498
}
499499

500500
void Setup::performUpgrade(const std::string& new_version, bool silent) {
501501
std::string exe;
502502
#ifdef _WIN64
503503
exe = ".exe";
504504
#endif
505-
ensureDir(LODA_HOME + "bin" + FILE_SEP);
505+
ensureDir(getLodaHome() + "bin" + FILE_SEP);
506506
const std::string exec_local = getExecutable("");
507507
const std::string exec_tmp = getExecutable("-" + Version::PLATFORM);
508508
#ifdef _WIN64

0 commit comments

Comments
 (0)