From 09154a716237cb492e348c09c8b00b0c4fdb35b9 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Tue, 13 Apr 2010 20:05:47 +0200 Subject: scripts/functions: fix CT_Patch again --- scripts/functions | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'scripts/functions') diff --git a/scripts/functions b/scripts/functions index 00d7214f..d4e92a9a 100644 --- a/scripts/functions +++ b/scripts/functions @@ -724,14 +724,16 @@ CT_Patch() { local bundled_patch_dir local local_patch_dir - pkgname="$1" - version="$2" - pkgdir="${pkgname}-${version}" - if [ "${nochdir}" = "nochdir" ]; then shift + pkgname="$1" + version="$2" + pkgdir="${pkgname}-${version}" nochdir="$(pwd)" else + pkgname="$1" + version="$2" + pkgdir="${pkgname}-${version}" nochdir="${CT_SRC_DIR}/${pkgdir}" fi -- cgit v1.2.3