Skip to content

Commit

Permalink
更新 unpack.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
zjw2017 committed Jul 21, 2024
1 parent 17d0a42 commit 0cb0040
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions unpack.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 0cb0040

Please sign in to comment.