Skip to content

Commit

Permalink
0.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
jellesiderius committed Jul 18, 2021
1 parent e2a9ed3 commit c32fd74
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/controllers/selfUpdateController.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/controllers/selfUpdateController.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/controllers/selfUpdateController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class SelfUpdateController {
});

if (config.currentVersion < config.latestVersion) {
await consoleCommand(`cd ${config.npmPath}; rm -rf dist`);

await download('jellesiderius/mage-db-sync#master', config.npmPath, async function (err: any) {
await consoleCommand(`cd ${config.npmPath}; npm install`);
success(`Updated mage-db-sync from ${config.currentVersion} to ${config.latestVersion}`);
Expand Down

0 comments on commit c32fd74

Please sign in to comment.