A Perl script that checks your current Bash version, and installs a patched Bash that is fixed from Shellshock but is the same major and minor version of your existing Bash install.
Why do this? Well if your Linux version is no longer supported (e.g. Fedora 18 and below) then you won't get a security release to patch Bash. This script will download, patch and build a new Bash for you.
bashfix has been tested on Perl versions 5.8 and 5.20.0, and Fedora and CentOS Linux.
$ git clone https://github.com/sillymoose/bashfix.git
$ cd bashfix
$ chmod +x bashfix.pl
$ ./bashfix.pl
Perl 5.8 or higher
No extra modules required
Linux with Bash version 3.* or 4.*
The following C binaries: wget, curl, bison, byacc, gettext, patch, autoconf
An internet connection to download Bash and associated patches from GNU
0.03
Thanks to Steve Jenkins, his blog post How to patch Bash formed the basis of this solution.
FreeBSD 2 clause - see LICENSE file