Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Acts exits without command line option #10

Closed
jepace opened this issue Dec 9, 2015 · 2 comments
Closed

Acts exits without command line option #10

jepace opened this issue Dec 9, 2015 · 2 comments

Comments

@jepace
Copy link

jepace commented Dec 9, 2015

(I'm just starting to configure acts, so please forgive me if I'm confused).

When I run acts with no arguments, it fails with:
# acts
/usr/local/bin/acts: 1: parameter not set
Exit

I suspect this is due to the "set -u", followed quickly by: if [ "$1" ...
That is, $1 isn't set since I have no command line arguments, which triggers the shell to terminate the program.

# sh -x /usr/local/bin/acts
+ set -u
+ set -e
+ VERSION=1.2
/usr/local/bin/acts: 1: parameter not set
Exit 2

Running on FreeBSD 10.2.

@jepace
Copy link
Author

jepace commented Dec 9, 2015

I have verified that moving the "set -u" to after the check for --version works.

@alexjurkiewicz
Copy link
Owner

d'oh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants