mirror of
https://github.com/actraiser/dustlayer.git
synced 2025-06-18 17:05:47 -04:00
remove directory when downloading the same tutorial
This commit is contained in:
parent
417f2ae085
commit
68655ef5c0
@ -6,7 +6,7 @@ var dust = require('../bin/dust');
|
||||
***************************************/
|
||||
|
||||
dust.cmd
|
||||
.version('0.4.3')
|
||||
.version('0.4.4')
|
||||
.usage('<command> [arguments]');
|
||||
|
||||
/*
|
||||
|
@ -3,7 +3,7 @@ var dust = require('../bin/dust');
|
||||
|
||||
var operatingSystem = operatingSystem();
|
||||
var osVersion = dust.shell.exec("sw_vers -productVersion", {silent:dust.silent}).output;
|
||||
var dustVersion = '0.4.3 (2013-04-16)';
|
||||
var dustVersion = '0.4.4 (2013-04-16)';
|
||||
|
||||
exports.operatingSystem = operatingSystem
|
||||
exports.osVersion = osVersion;
|
||||
|
@ -7,9 +7,9 @@ dust.templates.list = function(target){
|
||||
};
|
||||
|
||||
dust.templates.create = function downloadTemplate(repo,target){
|
||||
if (dust.shell.test('-d',repo)){
|
||||
if (dust.shell.test('-d',target)){
|
||||
console.log("Deleting previous download")
|
||||
dust.shell.exec('rm -rf ' + repo);
|
||||
dust.shell.exec('rm -rf ' + target);
|
||||
}
|
||||
dust.shell.exec("git clone https://github.com/actraiser/" + repo + '.git ' + target);
|
||||
dust.shell.exec("rm -rf " + repo + '/.git');
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "dustlayer",
|
||||
"preferGlobal": true,
|
||||
"version": "0.4.3",
|
||||
"version": "0.4.4",
|
||||
"homepage": "http://dustlayer.com",
|
||||
"author": "actraiser <actraiser@dustlayer.com>",
|
||||
"description": "command line suite for new and experienced retro programmers. Check homepage for details.",
|
||||
|
Loading…
Reference in New Issue
Block a user