now detects wrapped command correctly
This commit is contained in:
@ -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
|
||||
}
|
Reference in New Issue
Block a user