Last active
August 29, 2015 14:06
-
-
Save sgnn7/880eca9cec41d621fc53 to your computer and use it in GitHub Desktop.
Update bash to non-buggy version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -e | |
| VERSION=4.3-7ubuntu1.3 | |
| BUILD=6410174 | |
| PPA="ubuntu-security-proposed" | |
| ARCH=amd64 | |
| PREFIX=/tmp/dl | |
| sudo rm -rf $PREFIX | |
| mkdir -p $PREFIX | |
| wget "https://launchpad.net/~${PPA}/+archive/ubuntu/ppa/+build/${BUILD}/+files/bash-builtins_${VERSION}_${ARCH}.deb" -P $PREFIX | |
| # wget "https://launchpad.net/~${PPA}/+archive/ubuntu/ppa/+build/${BUILD}/+files/bash-static_${VERSION}_${ARCH}.deb" -P $PREFIX | |
| wget "https://launchpad.net/~${PPA}/+archive/ubuntu/ppa/+build/${BUILD}/+files/bash_${VERSION}_${ARCH}.deb" -P $PREFIX | |
| sudo dpkg -i $PREFIX/bash*.deb | |
| sudo apt-get install -fy | |
| rm -rf $PREFIX | |
| # sudo apt-get update | |
| # sudo apt-get dist-upgrade -y | |
| sudo sync | |
| sleep 10 | |
| sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment