Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
David Kit
Getting issues with create bash scripts
31 de mayo de 2011 5:03
Respuesta

David Kit

Ranking: New Member

Mensajes: 23

Fecha de incorporación: 3 de febrero de 2010

Mensajes recientes

Hello. After running chmod 777 onto the create.sh (not too sure why I have to do this... I thought it was meant to be executable by default) - I found another issue with creating a Hook...

For some reason the echo section in the bash script was causing errors.

Removing it seemed to work. However, the ./create.sh syntax failed horribly, had to use bash create.sh

Why might this be?
David H Nebinger
RE: Getting issues with create bash scripts
31 de mayo de 2011 12:15
Respuesta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensajes: 9444

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

Hey, David, not sure what kinds of issues you're actually getting, but the "chmod 777" thing should not be necessary, nor using bash directly to launch the scripts...

Can you provide some more info, i.e. what flavor of Unix/Linux are you using, what kinds of error messages you were getting, who the user/group is that owns the folder(s) for the SDK, etc., but we'll need more to help diagnose the issue...
David Kit
RE: Getting issues with create bash scripts
6 de julio de 2011 22:03
Respuesta

David Kit

Ranking: New Member

Mensajes: 23

Fecha de incorporación: 3 de febrero de 2010

Mensajes recientes

woops. Another late one. I am using MacOSX, basically, it starts off with the file extracted without execution permissions, so the way out of it was to run the chmod 777 to allow execution of that script.

With regarding to bash, it only needs the file to be readable, not executable. So running bash on the script is fine without modification.

I just got a little stumped following those instructions several months back because I was following the developer guide - but once I got used to seeing it it wasn't such a big deal.

Hope that makes sense emoticon