From 2f173aad7a6f4578574764801136a0d86e830653 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Wed, 22 Jun 2022 23:26:58 +0500 Subject: [PATCH] *.upk in any subpath --- builder | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/builder b/builder index 8d8303b..a7cbc86 100644 --- a/builder +++ b/builder @@ -524,9 +524,9 @@ function merge_packages () # $1: Mutator name while read -r Upk do - cp -f "$MutSource/$1/$Upk" "$KFWin64" - merge_package "$Upk" "$1.u" - done < <(find "$MutSource/$1" -type f -name '*.upk' -printf "%f\n") + cp -f "$Upk" "$KFWin64" + merge_package "$(basename "$Upk")" "$1.u" + done < <(find "$MutSource/$1" -type f -name '*.upk') } function parse_log () # $1: Logfile