From 80e8a6f9ce3e2175423f59bf7b99370044b51f6d Mon Sep 17 00:00:00 2001
From: P. J. McDermott <pjm@nac.net>
Date: Fri, 03 Feb 2012 04:04:49 -0500
Subject: Fix patch input path and exit on patch error.

---
(limited to 'src')

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
--
cgit v0.9.1