From 0cb0040b4d61bc12a2f8a1c9c13411dc39a8071f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=9A=E7=A8=9A=E7=9A=84=E5=AD=A9=E7=BA=B8?= <30484319+zjw2017@users.noreply.github.com> Date: Sun, 21 Jul 2024 13:10:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20unpack.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- unpack.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unpack.sh b/unpack.sh index 7ff69f4..a141274 100644 --- a/unpack.sh +++ b/unpack.sh @@ -1,6 +1,7 @@ #!/bin/bash # shellcheck disable=SC2034 # shellcheck disable=SC2154 +set -vx # 适用于出厂安卓13的机型 # unpack_partiton="system odm system_ext product vendor mi_ext system_dlkm vendor_dlkm" @@ -19,7 +20,9 @@ get_system_files() { if [ "$(echo "$source" | cut -d"/" -f2)" = "system" ]; then source=/system"$source" fi + echo "$GITHUB_WORKSPACE"/"$device""$source" path=${source%/*} + echo "$GITHUB_WORKSPACE"/"$device""$path" mkdir -p "$GITHUB_WORKSPACE"/get_files"$path" if [ -f "$GITHUB_WORKSPACE"/"$device""$source" ]; then sudo cp "$GITHUB_WORKSPACE"/"$device""$source" "$GITHUB_WORKSPACE"/get_files"$path"