Code Review
/
fuel.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
patch.sh: Exit on patch apply failure
[fuel.git]
/
mcp
/
patches
/
patch.sh
1
#!/bin/bash -ex
2
3
if [ -r "$1" ]; then
4
while IFS=': ' read -r p_dest p_file; do
5
if [[ "${p_dest}" =~ $2 ]]; then
6
patch -fd "${p_dest}" -p1 < "/root/fuel/mcp/patches/${p_file}"
7
fi
8
done < "$1"
9
fi