-
Notifications
You must be signed in to change notification settings - Fork 10
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
Errors running ipfilter.sh on macOS #1
Comments
That's the shell not being able to deal with You can try upgrading Bash, e.g. by following these instructions. I pushed commit fc064e3 to make life easier for macOS users. |
Have you had any success? I'd really like to know if it works on macOS. |
Running Bash 5. I get: bash-5.0$ /Users/macmini/ipfilter/ipfilter.sh --== IP Filter Updater & Generator ==-- Creating temporary folder... bash-5.0$ |
It would seem macOS doesn't like long options. Let me check this, I'll get back to you. |
Same result as rcollie Versions
Output--== IP Filter Updater & Generator ==--
Creating temporary folder...
mktemp: illegal option -- -
usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
mktemp [-d] [-q] [-u] -t prefix
An error occured, aborting. |
@SethWilliamson: I applied and committed all necessary changes for FreeBSD. See 582bb12. Tested successfully on FreeNAS 11.2-U7. |
@rcollie: Working for you now on macOS? |
% ~/Downloads/ipfilter-497237ddb16b68f73e598f058f06adc5395d882e/ipfilter.sh --== IP Filter Updater & Generator ==-- Creating temporary folder... |
@rcollie: please run again using Bash 5 as you did before. You either used Zsh or macOS' outdated stock Bash this time. |
Sorry ran it on a different system running older bash. After installing wget it works like a champ. Well done sir. |
@rcollie: great, my pleasure ;) |
Closing this now as the matter is resolved for macOS. Created a separate issue for FreeBSD. |
Hi, I'm getting the following errors, on macOS:
./ipfilter.sh: line 33: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
(..)/ipfilter/ipfilter.conf: line 20: level1: unbound variable
The text was updated successfully, but these errors were encountered: