lacy 1.5.2 → 1.6.3

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/index.mjs +4 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -483,8 +483,11 @@ ${pc.dim('https://github.com/lacymorrow/lacy')}
483
483
  const updateSpinner = p.spinner();
484
484
  updateSpinner.start('Updating Lacy');
485
485
 
486
+ // Determine which directory actually exists
487
+ const updateDir = existsSync(INSTALL_DIR) ? INSTALL_DIR : INSTALL_DIR_OLD;
488
+
486
489
  try {
487
- execSync('git pull origin main', { cwd: INSTALL_DIR, stdio: 'pipe' });
490
+ execSync('git pull origin main', { cwd: updateDir, stdio: 'pipe' });
488
491
  updateSpinner.stop('Lacy updated');
489
492
  p.log.success('Update complete!');
490
493
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lacy",
3
- "version": "1.5.2",
3
+ "version": "1.6.3",
4
4
  "description": "Install lacy — talk to your terminal",
5
5
  "type": "module",
6
6
  "bin": {