one line script doesn't work
So it's pretty basic, I have a one line script called runner.sh
(surprise) that goes something like this
MONGO_URL=somurl/meteor meteor --settings settings.json --port 3000
the thing is, if I run it like ./runner.sh
I get the following error --port must include a port.
which is crazy, because the port is there. Even crazier is, that if I just copy the line into the terminal, it works.
For the record, I tried adding a space, new line, prepending it with #/usr/bin/bash
and stuff, but nothing helps. Any help, please?
The line you need at the top is actually
#!/usr/bin/bash
(note the !), unless you just typed it wrong in the question.