Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
CB-7305 remove trailing slash from dest
  • Loading branch information
purplecabbage committed Aug 14, 2014
1 parent 4a36392 commit 4914c9865873a7443a16143de8d93061642c1cf1
Showing 1 changed file with 13 additions and 0 deletions.
@@ -249,6 +249,19 @@ if (args.Count() > 0) {
Log("CREATE FAILED.", true);
WScript.Quit(1);
}
else {
// Fix trailing slash issue
while(destPath.length && destPath.substr(destPath.length - 1,1) == "\\") {
destPath = destPath.substr(0,destPath.length - 1);
}
if(!destPath.length) {
Log("Invalid destination specified: " + args(0),true);
WScript.Quit(1);
}
}



var packageName = "Cordova.Example";
if (args.Count() > 1) {
packageName = args(1);

0 comments on commit 4914c98

Please sign in to comment.