Browse Source

elxr cli fixes

master
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

nodeShellExec( "fsutil", ["dirty", "query", "C:"], { nodeShellExec( "fsutil", ["dirty", "query", "C:"], {
inherit : true, shell: true inherit : true, shell: true
, env: process.env , env: process.env
, title : `check privileged execution mode using fsutil dirty query C:`
}).then((exitcode)=>{ }).then((exitcode)=>{
console.log('Elevated') console.log('Elevated')
}).catch(()=>{ }).catch(()=>{
, { , {
inherit : true inherit : true
// , shell: true // , shell: true
// , env: process.env
, env: process.env
, ,
title : `runsAs` title : `runsAs`
} }
if(existsSync(repo)) { if(existsSync(repo)) {
console.log('pulling ' + repo) console.log('pulling ' + repo)
nodeShellExec('git', ['pull'], { nodeShellExec('git', ['pull'], {
// inherit : true, shell: true
// ,
inherit : true, shell: true,
cwd : repo cwd : repo
// , env: process.env
, env: process.env
, title : `git pull ${repo}` , title : `git pull ${repo}`
}).catch((e)=>{ console.error(e) }) }).catch((e)=>{ console.error(e) })
} }
console.log('cloning ' + repo) console.log('cloning ' + repo)
nodeShellExec('git', ['clone', '//172.16.0.27/repos/' + repo + '.git'], nodeShellExec('git', ['clone', '//172.16.0.27/repos/' + repo + '.git'],
{ {
// inherit : true, shell: true
// ,
inherit : true, shell: true,
cwd : repo cwd : repo
// , env: process.env
, env: process.env
, title : `git clone ${'//172.16.0.27/repos/' + repo + '.git'}` , title : `git clone ${'//172.16.0.27/repos/' + repo + '.git'}`
}).catch((e)=>{ console.error(e) }) }).catch((e)=>{ console.error(e) })
} }

Loading…
Cancel
Save