From 0afeef4acc6741efad0d18166710bc189d3edd12 Mon Sep 17 00:00:00 2001 From: v4lkyr Date: Sat, 15 Jul 2023 10:53:18 +0800 Subject: [PATCH] dumpyara.sh: delete all existing symlinks Currently, dumpyara script fails if there are symlinks in the stock firmware. Delete them all before invoking aospdtgen so the script can correctly proceed. Signed-off-by: v4lkyr --- dumpyara.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dumpyara.sh b/dumpyara.sh index 5f66d5a..6172751 100755 --- a/dumpyara.sh +++ b/dumpyara.sh @@ -225,6 +225,10 @@ manufacturer=$(echo "$manufacturer" | tr '[:upper:]' '[:lower:]' | tr -dc '[:pri printf "# %s\n- manufacturer: %s\n- platform: %s\n- codename: %s\n- flavor: %s\n- release: %s\n- id: %s\n- incremental: %s\n- tags: %s\n- fingerprint: %s\n- is_ab: %s\n- brand: %s\n- branch: %s\n- repo: %s\n" "$description" "$manufacturer" "$platform" "$codename" "$flavor" "$release" "$id" "$incremental" "$tags" "$fingerprint" "$is_ab" "$brand" "$branch" "$repo" > "$PROJECT_DIR"/working/"${UNZIP_DIR}"/README.md cat "$PROJECT_DIR"/working/"${UNZIP_DIR}"/README.md +# Delete all existing symlinks to avoid not found errors +echo "Deleting symlinks" +find "$PROJECT_DIR"/working/"${UNZIP_DIR}" -type l -delete + # Generate AOSP device tree if python3 -c "import aospdtgen"; then echo "aospdtgen installed, generating device tree"