cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhigg...@apache.org
Subject [2/2] git commit: CB-2606 Andriod icon - do not attempt copy to undefined path
Date Thu, 24 Apr 2014 13:17:46 GMT
CB-2606 Andriod icon - do not attempt copy to undefined path


Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/bceca90d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/bceca90d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/bceca90d

Branch: refs/heads/master
Commit: bceca90d4f4c5dec88f3d0023350b8453d752870
Parents: bc86dc6
Author: Bryan Higgins <bhiggins@blackberry.com>
Authored: Thu Apr 24 09:16:30 2014 -0400
Committer: Bryan Higgins <bhiggins@blackberry.com>
Committed: Thu Apr 24 09:16:30 2014 -0400

----------------------------------------------------------------------
 src/metadata/android_parser.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/bceca90d/src/metadata/android_parser.js
----------------------------------------------------------------------
diff --git a/src/metadata/android_parser.js b/src/metadata/android_parser.js
index 8f67e4a..a460fa8 100644
--- a/src/metadata/android_parser.js
+++ b/src/metadata/android_parser.js
@@ -153,8 +153,10 @@ module.exports.prototype = {
                 }
               }
             }
-            events.emit('verbose', 'Copying icon from ' + srcfilepath + ' to ' + destfilepath);
-            shell.cp('-f', srcfilepath, destfilepath);
+            if (srcfilepath) {
+                events.emit('verbose', 'Copying icon from ' + srcfilepath + ' to ' + destfilepath);
+                shell.cp('-f', srcfilepath, destfilepath);
+            }
           }.bind(this);
           for (var density in densities) {
             copyIcon(density);


Mime
View raw message