better update routine
This commit is contained in:
parent
f448487153
commit
b219494a4e
|
@ -2,10 +2,10 @@ var exec = require('child_process').exec;
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
|
|
||||||
var themeFolder = path.join(path.resolve('.'), 'themes');
|
var themeFolder = path.join(path.resolve('.'), 'themes');
|
||||||
console.log(themeFolder);
|
|
||||||
var oldTheme = path.join(themeFolder, 'infusion');
|
var oldTheme = path.join(themeFolder, 'infusion');
|
||||||
|
|
||||||
exec('mv '+oldTheme+' '+oldTheme+'-old-'+Date.now(), function(error, stdout, stderr) {
|
exec('mv '+oldTheme+' '+oldTheme+'-old-'+Date.now(), function(error, stdout, stderr) {
|
||||||
|
console.log('Updating...');
|
||||||
if (error !== null) {
|
if (error !== null) {
|
||||||
console.error('Error saving old infusion version.');
|
console.error('Error saving old infusion version.');
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user