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

Getting an error trying aws-block: Join is not defined. #7

Open
chubbard opened this issue Mar 15, 2018 · 1 comment
Open

Getting an error trying aws-block: Join is not defined. #7

chubbard opened this issue Mar 15, 2018 · 1 comment

Comments

@chubbard
Copy link
Contributor

I got the latest script and tried to execute it using:

sudo ./aws-blocker

And I got the following error:

2 compile errors
error: join is not defined
[ .ipv6_prefixes[] ] | group_by(.ipv6_prefix) | map({ "ip": .[0].ipv6_prefix, "regions": map(.region) | 
unique, "services": map(.service) | unique }) | .[] | .ip + " \"" + (.regions | sort | join (", ")) + "\" \"" + 
(.services | sort | join (", ")) + "\""
                                                                                                                                                                                           
^^^^
error: join is not defined
[ .ipv6_prefixes[] ] | group_by(.ipv6_prefix) | map({ "ip": .[0].ipv6_prefix, "regions": map(.region) | 
unique, "services": map(.service) | unique }) | .[] | .ip + " \"" + (.regions | sort | join (", ")) + "\" \"" + 
(.services | sort | join (", ")) + "\""
                                                                                                                                                                                                                                        
^^^^
2 compile errors

I'm on ubuntu, and /usr/bin/join is there. I checked the $PATH for root, and it has /usr/bin on the path. So I'm not sure why it can't find it.

@gserafini
Copy link

You need jq >= version 1.5 (1.3 doesn't have the join command in it).

https://stedolan.github.io/jq/download/

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