Skip to content

Instantly share code, notes, and snippets.

@bborysenko
Created September 30, 2014 10:56
Show Gist options
  • Save bborysenko/0ea02480560b062c6ad2 to your computer and use it in GitHub Desktop.
Save bborysenko/0ea02480560b062c6ad2 to your computer and use it in GitHub Desktop.
#!/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