Skip to content

Commit 125ec69

Browse files
committed
place double quotes around --target, closes ionic-team#94
1 parent 5cc52ce commit 125ec69

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/ionic/cordova.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ IonicTask.prototype.runCordova = function(cmdName) {
8383
}
8484
}
8585
if(isValdCmd) {
86+
// make sure --target= has double quotes around it (process.argv removes them)
87+
if(cmdArg.indexOf('--target=') === 0 && cmdArg.indexOf('"') === -1) {
88+
cmdArg = cmdArg.replace('--target=', '--target="') + '"';
89+
}
90+
8691
cleanArgs.push(cmdArg);
8792
}
8893
}

0 commit comments

Comments
 (0)