Skip to content

Commit

Permalink
Add quotes to copy function for version history to allow for spaces i…
Browse files Browse the repository at this point in the history
…n paths.
  • Loading branch information
ryantse committed Dec 28, 2011
1 parent bff9ffd commit bc0759c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/project.js
Expand Up @@ -31,7 +31,7 @@ setInterval(function() {
date: (new Date()).valueOf(),
uuid: generatedUuid
})
exec('cp -- ' + (process.cwd() + file) + ' ' + (process.cwd() + '/.nide/' + generatedUuid), function(err) {
exec('cp -- "' + (process.cwd() + file) + '" "' + (process.cwd() + '/.nide/' + generatedUuid) + '"', function(err) {
if (!err) {
saveVersionHistory()
}
Expand Down

0 comments on commit bc0759c

Please sign in to comment.