Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- while read line
- do
- patch=$(echo "$line" | sed
- 's,github\.com,patch-diff.githubusercontent.com/raw,; s,$,.patch,')
- prnr=$(echo "$line" | sed 's,.*/,,')
- curl $patch | git am -s || exit 1
- echo "Closes #$prnr"
- done < "${1:-/dev/stdin}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement