diff --git a/src/commands/update.ts b/src/commands/update.ts index 0aa9555d..ccd08176 100644 --- a/src/commands/update.ts +++ b/src/commands/update.ts @@ -180,7 +180,7 @@ export default class UpdateCommand extends Command { private async determineCurrentVersion(): Promise { try { - const currentVersion = await fs.readlink(path.join(this.clientRoot, 'current')) + const currentVersion = await fs.readFile(path.join(this.clientRoot, 'bin', this.config.bin), 'utf8') const matches = currentVersion.match(/\.\.[/|\\](.+)[/|\\]bin/) return matches ? matches[1] : this.config.version } catch (error) {