diff options
author | P. 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) |
commit | 80e8a6f9ce3e2175423f59bf7b99370044b51f6d (patch) | |
tree | 247a7c39ec5427e3dd2bf96ce11166bd6fb1196c /src | |
parent | 17d8b4d09987106b6f9daf4f994ef2f9cbdf2b0d (diff) |
Fix patch input path and exit on patch error.
Diffstat (limited to 'src')
-rw-r--r-- | src/oh-applypatches | 2 |
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 |