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.
- package/index.mjs +4 -1
- 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:
|
|
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
|
|