Skip to content

Commit

Permalink
Spaces in paths fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Zork committed Apr 18, 2016
1 parent df6b751 commit df4d14b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ let log = (message) => {
};

let packDMG = (path) => {
exec()(`hdiutil create -format ${options.dmgFormat} -srcfolder ${path} ${path}.dmg`);
exec()(`hdiutil create -format ${options.dmgFormat} -srcfolder "${path}" "${path}.dmg"`);
log(`DMG file created: "${path}.dmg"`);
};

Expand All @@ -59,7 +59,7 @@ let packZIP = (path) => {
cmd = (isWindows
? `${get7zPath()} a`
: 'zip -r')
+ ` ${pathInfo.base}.zip ${pathInfo.base}`,
+ ` "${pathInfo.base}.zip" "${pathInfo.base}"`,
params = { };

if (pathInfo.dir) {
Expand Down

0 comments on commit df4d14b

Please sign in to comment.