now detects wrapped command correctly

This commit is contained in:
2016-06-11 21:01:44 +02:00
parent 973c55e147
commit 7fc8648d40
2 changed files with 14 additions and 3 deletions

View File

@ -4,7 +4,12 @@ import {bash} from "./npmci.bash";
export let command = () => {
let done = plugins.q.defer()
console.log(process.argv);
let wrappedCommand:string = "";
let argvArray = process.argv;
for(let i = 3; i < argvArray.length; i++){
wrappedCommand = wrappedCommand + argvArray[i];
}
bash(wrappedCommand);
done.resolve();
return done.promise
}