now correctly adding spaces in wrapped commands

This commit is contained in:
2016-06-11 21:14:20 +02:00
parent 61c00f31ea
commit b8079e0bc9
2 changed files with 5 additions and 2 deletions

View File

@ -7,7 +7,8 @@ export let command = () => {
let wrappedCommand:string = "";
let argvArray = process.argv;
for(let i = 3; i < argvArray.length; i++){
wrappedCommand = wrappedCommand + argvArray[i];
wrappedCommand = wrappedCommand + argvArray[i];
if(i + 1 != argvArray.length) wrappedCommand = wrappedCommand + " ";
}
bash(wrappedCommand);
done.resolve();