mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-15 04:32:13 +00:00
updating current home dir
This commit is contained in:
parent
0873c8e244
commit
bcbe6c9619
1 changed files with 1 additions and 3 deletions
|
@ -8,8 +8,6 @@ import path from "node:path";
|
||||||
import { backupsPath } from "@main/constants";
|
import { backupsPath } from "@main/constants";
|
||||||
import type { GameShop } from "@types";
|
import type { GameShop } from "@types";
|
||||||
|
|
||||||
import os from "node:os";
|
|
||||||
|
|
||||||
import YAML from "yaml";
|
import YAML from "yaml";
|
||||||
|
|
||||||
export interface LudusaviBackup {
|
export interface LudusaviBackup {
|
||||||
|
@ -40,7 +38,7 @@ const replaceLudusaviBackupWithCurrentUser = (
|
||||||
|
|
||||||
fs.renameSync(
|
fs.renameSync(
|
||||||
path.join(usersDirPath, path.basename(backupHomeDir)),
|
path.join(usersDirPath, path.basename(backupHomeDir)),
|
||||||
path.join(usersDirPath, os.userInfo().username)
|
path.join(usersDirPath, path.basename(currentHomeDir))
|
||||||
);
|
);
|
||||||
|
|
||||||
const backups = manifest.backups.map((backup: LudusaviBackup) => {
|
const backups = manifest.backups.map((backup: LudusaviBackup) => {
|
||||||
|
|
Loading…
Reference in a new issue