Browse Source

elxr cli fixes

production
Pradeep Bhaskaran 4 years ago
parent
commit
cac520598d
1 changed files with 6 additions and 7 deletions
  1. 6
    7
      index.js

+ 6
- 7
index.js View File

@@ -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) })
}

Loading…
Cancel
Save