groc icon indicating copy to clipboard operation
groc copied to clipboard

github option doesn't work

Open Raynos opened this issue 13 years ago • 16 comments

  Publishing documentation to github...
! /usr/local/lib/node_modules/groc/scripts/publish-git-pages.sh: 10: Syntax error: "(" unexpected

Ubuntu 11.04

Raynos avatar Jan 10 '12 22:01 Raynos

Doh, turns out I'm a complete sh newb. I just pushed groc v0.2.5 (with 951c8dd27bd6150ebc7a5a17308941bb44426591), which should fix that issue at least

nevir avatar Jan 10 '12 23:01 nevir

(this also points to the updated nevir/node-autorequire#2, which tackles the node version requirements that you were running up against over there)

nevir avatar Jan 10 '12 23:01 nevir

 Publishing documentation to github...
! /usr/local/lib/node_modules/groc/scripts/publish-git-pages.sh: 12: Syntax error: Bad for loop variable

Raynos avatar Jan 10 '12 23:01 Raynos

Curses! My hunch is that you have an actual sh and I'm doing bad things. Rather than dealing with that, I'm just going to make bash a hard requirement for now: bd5c32ba6edaa543197be44f16bcd925856c8775

I pushed v0.2.6 which switches the shebang to point to bash instead of sh. Does that clear it up?

nevir avatar Jan 10 '12 23:01 nevir

It ran but deleted all my files -.- <not impressed>

https://gist.github.com/1592084

Raynos avatar Jan 11 '12 00:01 Raynos

You should be in the gh-pages branch - if so, run the following to get back into a good state:

git reset --hard HEAD && git checkout master

nevir avatar Jan 11 '12 00:01 nevir

It should be only removing files checked into the gh-pages branch. In order to figure out how that went wrong - what's your .gitignore look like?

nevir avatar Jan 11 '12 00:01 nevir

yeah I got the code back, it's just the script doesn't do anything useful :D,

Thankfully the script said "commit code before I continue running"

Raynos avatar Jan 11 '12 00:01 Raynos

Yeah, definitely don't want to screw things up unless you have everything checked in

nevir avatar Jan 11 '12 00:01 nevir

Do you have the node_modules directory checked into your project? It looks like some files aren't owned by your user, so it's failing to clean those up (I don't want to inadvertently copy files around to your docs branch). The script might be happy if you chown them all

nevir avatar Jan 11 '12 00:01 nevir

removing node_modules from git and adding it to .gitignore made the problem go away

Raynos avatar Jan 11 '12 00:01 Raynos

@nevir as an aside, is there any easy way to change the colour style of groc. (Your choice is ugly :()

Raynos avatar Jan 11 '12 00:01 Raynos

@Raynos There isn't at the moment, but I'm in the process of revamping the style, I'll see about making that more extensible

nevir avatar Jan 11 '12 01:01 nevir

@nevir also note that the menu doesn't build properly for me : http://raynos.github.com/nCore-example/test/server.html

Raynos avatar Jan 11 '12 01:01 Raynos

Hmm, what browser are you using?

nevir avatar Jan 11 '12 02:01 nevir

@nevir never mind the bug is magically gone.

Raynos avatar Jan 11 '12 02:01 Raynos