summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/functions b/scripts/functions
index 00d7214..d4e92a9 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