love-release - in Lua ! - makes LÖVE game release easier

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
Positive07
Party member
Posts: 1014
Joined: Sun Aug 12, 2012 4:34 pm
Location: Argentina

Re: Love-Release. Bash script to make it easier.

Post by Positive07 »

So its a problem with functions and the parenthesis... try deleting the parenthesis in all of them... just debugging
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
Kookerus
Prole
Posts: 39
Joined: Sat Jun 28, 2014 4:33 am

Re: Love-Release. Bash script to make it easier.

Post by Kookerus »

Positive07 wrote:So its a problem with functions and the parenthesis... try deleting the parenthesis in all of them... just debugging
Does it work fine for you? and if so, would you be able to send me a copy of yours, so I can see if it works?
Kookerus
Prole
Posts: 39
Joined: Sat Jun 28, 2014 4:33 am

Re: Love-Release. Bash script to make it easier.

Post by Kookerus »

I removed all the parentheses, and it threw an error wherever there was the word "function"
Kookerus
Prole
Posts: 39
Joined: Sat Jun 28, 2014 4:33 am

Re: Love-Release. Bash script to make it easier.

Post by Kookerus »

Found out what was wrong! Because the script has the .sh extension, bash was executing it with /bin/sh instead of /bin/bash.
renaming the file "love-release" fixed the issue
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Love-Release. Bash script to make it easier.

Post by bartbes »

It shouldn't, that said the function syntax is either

Code: Select all

functionname()
{
# stuff
}
or

Code: Select all

function functionname
{
# stuff
}
The former being the most portable of the two, too.
Kookerus
Prole
Posts: 39
Joined: Sat Jun 28, 2014 4:33 am

Re: Love-Release. Bash script to make it easier.

Post by Kookerus »

I honestly have no clue, but renaming it worked.
For whatever reason, when Ubuntu decides to work for me it's incredibly picky
User avatar
murks
Party member
Posts: 185
Joined: Tue Jun 03, 2014 4:18 pm

Re: Love-Release. Bash script to make it easier.

Post by murks »

Not sure this is still true, but at some point I read that ubuntu uses dash (wow, I looked it up and this was a change in Ubuntu 6.10 :)). You may also make sure that the first line in the file is

Code: Select all

#!/usr/bin/env bash
. This should make sure that it is executed with bash, no matter where it is installed. However, I have no idea what ubuntu/gnome will do if you execute it from a file manager that looks at the extension.
User avatar
Tanner
Party member
Posts: 166
Joined: Tue Apr 10, 2012 1:51 am

Re: Love-Release. Bash script to make it easier.

Post by Tanner »

+1 to `#!/usr/bin/env`
Kookerus
Prole
Posts: 39
Joined: Sat Jun 28, 2014 4:33 am

Re: Love-Release. Bash script to make it easier.

Post by Kookerus »

Nope, still doesn't work with the ".sh" extension
I'm using Gnome for my DM, so that might be the problem
User avatar
murks
Party member
Posts: 185
Joined: Tue Jun 03, 2014 4:18 pm

Re: Love-Release. Bash script to make it easier.

Post by murks »

Try to run it from the command line. It really seems like stupid gnome executes it with sh because of the .sh extension.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest