Skip to content

Commit

Permalink
patch for custom template permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Escalante committed Sep 25, 2013
1 parent f90c586 commit 5dccbeb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ Roots Changelog

Beginning with version `2.0.0`, we will be maintaining a changelog to show what changes have been implemented each release. We hope that this will help roots users to stay informed about the updates being made and avoid breakage when a major or minor version bump occurs.

### 2.0.6
(released 09/25/2013)
- fix permissions error with roots custom templates

### 2.0.5
(released 08/15/2013)
- github pages deployer is now very reliable
Expand Down
6 changes: 4 additions & 2 deletions lib/commands/new.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,18 @@ function update_git_repo(tmpl_path){
if (pull_command.code === 0) {
return tmpl_path
} else {
return { error: pull_command }
return { error: pull_command.output }
}
}

function clone_git_repo(tmpl, tmpl_path){
// need to chown new in order to copy out correctly
var chown_command = shell.exec('sudo chown `whoami` ' + path.join(__dirname, '../../templates/new'));
var clone_command = shell.exec('git clone ' + tmpl + ' ' + tmpl_path, { silent: true });

if (clone_command.code === 0) {
return tmpl_path
} else {
return { error: clone_command }
return { error: clone_command.output }
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "roots",
"version": "2.0.5",
"version": "2.0.6",
"description": "roots is a toolbox for building simple, beautiful, and efficient products for the web",
"keywords": [
"front-end",
Expand Down

0 comments on commit 5dccbeb

Please sign in to comment.