love-release - in Lua ! - makes LÖVE game release easier
- Positive07
- Party member
- Posts: 1014
- Joined: Sun Aug 12, 2012 4:34 pm
- Location: Argentina
Re: Love-Release. Bash script to make it easier.
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)
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
Re: Love-Release. Bash script to make it easier.
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?Positive07 wrote:So its a problem with functions and the parenthesis... try deleting the parenthesis in all of them... just debugging
Re: Love-Release. Bash script to make it easier.
I removed all the parentheses, and it threw an error wherever there was the word "function"
Re: Love-Release. Bash script to make it easier.
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
renaming the file "love-release" fixed the issue
- 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.
It shouldn't, that said the function syntax is either
or
The former being the most portable of the two, too.
Code: Select all
functionname()
{
# stuff
}
Code: Select all
function functionname
{
# stuff
}
Re: Love-Release. Bash script to make it easier.
I honestly have no clue, but renaming it worked.
For whatever reason, when Ubuntu decides to work for me it's incredibly picky
For whatever reason, when Ubuntu decides to work for me it's incredibly picky
Re: Love-Release. Bash script to make it easier.
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 . 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.
Code: Select all
#!/usr/bin/env bash
Re: Love-Release. Bash script to make it easier.
Nope, still doesn't work with the ".sh" extension
I'm using Gnome for my DM, so that might be the problem
I'm using Gnome for my DM, so that might be the problem
Re: Love-Release. Bash script to make it easier.
Try to run it from the command line. It really seems like stupid gnome executes it with sh because of the .sh extension.
Who is online
Users browsing this forum: No registered users and 1 guest