|
|
@@ -220,6 +220,7 @@ var __runcmd = function(label){ |
|
|
|
nodeShellExec( "fsutil", ["dirty", "query", "C:"], { |
|
|
|
inherit : true, shell: true |
|
|
|
, env: process.env |
|
|
|
, title : `check privileged execution mode using fsutil dirty query C:` |
|
|
|
}).then((exitcode)=>{ |
|
|
|
console.log('Elevated') |
|
|
|
}).catch(()=>{ |
|
|
@@ -229,7 +230,7 @@ var __runcmd = function(label){ |
|
|
|
, { |
|
|
|
inherit : true |
|
|
|
// , shell: true |
|
|
|
// , env: process.env |
|
|
|
, env: process.env |
|
|
|
, |
|
|
|
title : `runsAs` |
|
|
|
} |
|
|
@@ -249,10 +250,9 @@ var __runcmd = function(label){ |
|
|
|
if(existsSync(repo)) { |
|
|
|
console.log('pulling ' + repo) |
|
|
|
nodeShellExec('git', ['pull'], { |
|
|
|
// inherit : true, shell: true |
|
|
|
// , |
|
|
|
inherit : true, shell: true, |
|
|
|
cwd : repo |
|
|
|
// , env: process.env |
|
|
|
, env: process.env |
|
|
|
, title : `git pull ${repo}` |
|
|
|
}).catch((e)=>{ console.error(e) }) |
|
|
|
} |
|
|
@@ -260,10 +260,9 @@ var __runcmd = function(label){ |
|
|
|
console.log('cloning ' + repo) |
|
|
|
nodeShellExec('git', ['clone', '//172.16.0.27/repos/' + repo + '.git'], |
|
|
|
{ |
|
|
|
// inherit : true, shell: true |
|
|
|
// , |
|
|
|
inherit : true, shell: true, |
|
|
|
cwd : repo |
|
|
|
// , env: process.env |
|
|
|
, env: process.env |
|
|
|
, title : `git clone ${'//172.16.0.27/repos/' + repo + '.git'}` |
|
|
|
}).catch((e)=>{ console.error(e) }) |
|
|
|
} |