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() {