Skip to content

Commit

Permalink
CB-4961: shell.js returns the full path on ls, rebuilding the full pa…
Browse files Browse the repository at this point in the history
…th isn't really needed
  • Loading branch information
infil00p committed Sep 30, 2013
1 parent ec97414 commit b858a4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/lib/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ function copyJsAndJar(projectPath, version) {
// Don't fail if there are no old jars.
setShellFatal(false, function() {
shell.ls(path.join(projectPath, 'libs', 'cordova-*.jar')).forEach(function(oldJar) {
shell.rm('-f', path.join(projectPath, 'libs', oldJar));
console.log("Deleting " + oldJar);
shell.rm('-f', path.join(oldJar));
});
});
shell.cp('-f', path.join(ROOT, 'framework', 'cordova-' + version + '.jar'), path.join(projectPath, 'libs', 'cordova-' + version + '.jar'));
Expand Down

0 comments on commit b858a4a

Please sign in to comment.