From 5cdf10aea2e175d1f64d65de72373ae262a1d034 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=B9i=20=C4=90=E1=BB=A9c=20Hi=E1=BB=81n?= <54226198+buihien224@users.noreply.github.com> Date: Mon, 4 Dec 2023 15:45:28 +0700 Subject: [PATCH] Fix bug again --- .github/workflows/patch.yml | 1 + bhlnk.sh | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/.github/workflows/patch.yml b/.github/workflows/patch.yml index f886bd4..fc3a97f 100644 --- a/.github/workflows/patch.yml +++ b/.github/workflows/patch.yml @@ -29,6 +29,7 @@ jobs: - name: Download Framework.jar run: | axel -n $(nproc) ${{ github.event.inputs.F }} + mv *jar img_temp - name : PATCH-ING run: | diff --git a/bhlnk.sh b/bhlnk.sh index e03e54b..d166037 100644 --- a/bhlnk.sh +++ b/bhlnk.sh @@ -86,6 +86,22 @@ jar_util() fi } +repM () { + if [[ $4 == "r" ]]; then + if [[ -f $3 ]]; then + $repM $1 $2 $3 + fi + elif [[ $4 == "f" ]]; then + for i in $3; do + $repM $1 $2 $i + done + else + file=$(sudo find -name $3) + if [[ $file ]]; then + $repM $1 $2 $file + fi + fi +} framework() {