Created
September 30, 2014 10:56
-
-
Save bborysenko/0ea02480560b062c6ad2 to your computer and use it in GitHub Desktop.
This file contains 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/sh | |
# You can edit these variables | |
version="4.0" | |
nodotversion="40" | |
lastpatch="41" | |
# You probably don't want to edit anything below this line | |
for i in `seq 1 $lastpatch`; | |
do | |
number=$(printf %02d $i) | |
file="https://ftp.gnu.org/pub/gnu/bash/bash-${version}-patches/bash${nodotversion}-0$number" | |
echo $file | |
curl $file | patch -N -p0 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment