pinokiod 0.1.10 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/server/index.js +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -44,7 +44,7 @@
44
44
  "sanitize-filename": "^1.6.3",
45
45
  "semver": "^7.5.4",
46
46
  "shell-path": "^2.0.0",
47
- "sudo-prompt-programfiles-x86": "^9.2.7",
47
+ "sudo-prompt-programfiles-x86": "^9.2.8",
48
48
  "systeminformation": "^5.18.4",
49
49
  "uuid": "^9.0.0",
50
50
  "watcher": "^2.2.2",
package/server/index.js CHANGED
@@ -1279,7 +1279,12 @@ class Server {
1279
1279
  if (existing_home) {
1280
1280
  // if the home is already set, move
1281
1281
  console.log("RUNNING MV")
1282
- const mv_cmd = `${(this.kernel.platform === "win32" ? "move" : "mv")} ${existing_home} ${new_home}`
1282
+ let mv_cmd
1283
+ if (this.kernel.platform === "win32") {
1284
+ mv_cmd = `robocopy ${existing_home} ${new_home} /E /MOVE`
1285
+ } else {
1286
+ mv_cmd = `mv ${existing_home} ${new_home}`
1287
+ }
1283
1288
  await this.sudo_exec(mv_cmd, existing_home)
1284
1289
  console.log("FINISHED MV")
1285
1290