summaryrefslogtreecommitdiffstats
path: root/src/oh-applypatches
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-02-03 04:04:49 (EST)
committer P. J. McDermott <pjm@nac.net>2012-02-03 04:04:49 (EST)
commit80e8a6f9ce3e2175423f59bf7b99370044b51f6d (patch)
tree247a7c39ec5427e3dd2bf96ce11166bd6fb1196c /src/oh-applypatches
parent17d8b4d09987106b6f9daf4f994ef2f9cbdf2b0d (diff)
Fix patch input path and exit on patch error.
Diffstat (limited to 'src/oh-applypatches')
-rw-r--r--src/oh-applypatches2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/oh-applypatches b/src/oh-applypatches
index 24438f2..f43dbfb 100644
--- a/src/oh-applypatches
+++ b/src/oh-applypatches
@@ -35,7 +35,7 @@ if [ -d ../patches ]; then
# Iterate over patches ordered alphabetically by name.
for patch in $(ls -1 ../patches | sort); do
printf 'oh-applypatches: Applying patch "%s"...\n' "${patch}"
- patch -N -p 1 -u -d src -i "../patches/${patch}"
+ patch -N -p 1 -u -d src -i "../../patches/${patch}" || exit 1
applied=true
done
fi