cloudron 5.16.0 → 5.16.1
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/bin/cloudron +2 -16
- package/package.json +1 -1
package/bin/cloudron
CHANGED
|
@@ -290,19 +290,5 @@ program.command('update')
|
|
|
290
290
|
.option('--no-force', 'Match appstore id and manifest id before updating', true)
|
|
291
291
|
.action(actions.update);
|
|
292
292
|
|
|
293
|
-
(
|
|
294
|
-
|
|
295
|
-
if (process.argv[2] !== 'completion') {
|
|
296
|
-
if (Date.now() - (config.get('lastCliUpdateCheck') || 0) > 24*60*60*1000) {
|
|
297
|
-
// check if cli tool is up-to-date
|
|
298
|
-
const [error, response] = await safe(superagent.get('https://registry.npmjs.org/cloudron').retry(0).ok(() => true));
|
|
299
|
-
if (!error && response.status === 200 && response.body['dist-tags'].latest !== version) {
|
|
300
|
-
const updateCommand = 'npm install -g cloudron@' + response.body['dist-tags'].latest;
|
|
301
|
-
process.stderr.write(util.format('A new version of Cloudron CLI is available. Please update with: %s\n', updateCommand));
|
|
302
|
-
}
|
|
303
|
-
config.set('lastCliUpdateCheck', Date.now());
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
program.parse(process.argv);
|
|
308
|
-
})();
|
|
293
|
+
program.parse(process.argv);
|
|
294
|
+
|