summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ob-applypatches.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ob-applypatches.sh b/src/ob-applypatches.sh
index a522238..10ace82 100644
--- a/src/ob-applypatches.sh
+++ b/src/ob-applypatches.sh
@@ -50,8 +50,10 @@ apply_patches()
LANG="${orig_lang}"
patch="${patch#../patches/}"
ob_info "$(ob_get_msg 'applying_patch')" "${patch}"
- patch -N -p 1 -u -d 'src' -i "../../patches/${patch}" || \
+ cd src
+ patch -N -p 1 -u -i "../../patches/${patch}" || \
ob_error "$(ob_get_msg 'cant_apply_patch')" "${patch}"
+ cd ..
applied='true'
done
LANG="${orig_lang}"