corbanworks / aws-blocker

A simple bash script to block all AWS IP ranges using iptables.
The Unlicense
143 stars 34 forks source link

Fails on Unbuntu with Syntax error #3

Closed chubbard closed 8 years ago

chubbard commented 8 years ago

On Ubuntu the default shell is /bin/dash not /bin/bash so the shell doesn't support bash <<< redirection. You get the following error:

./aws-blocker: Syntax error: redirection unexpected

The proper hash bang syntax was incorrect causing it to execute in /bin/dash instead of/bin/bash. Added the #! at the top.