extract_utils: Drop string after semicolon when parsing destination
This fixes parsing when arguments contain colons, a typical usecase
would be:
-vendor/app/TimeService/TimeService.apk;:timeservice_app_cert
Change-Id: I7500ae09632632ddc10734d9b1df267e28286b67
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
diff --git a/build/tools/extract_utils.sh b/build/tools/extract_utils.sh
index ad5ba54..56e5de5 100644
--- a/build/tools/extract_utils.sh
+++ b/build/tools/extract_utils.sh
@@ -129,7 +129,7 @@
# output: "dst" if present, "src" otherwise.
#
function target_file() {
- local SPEC="$1"
+ local SPEC="${1%%;*}"
local SPLIT=(${SPEC//:/ })
local ARGS="$(target_args ${SPEC})"
local DST=