From e1f064efd4b8d3354af3544dce25144722298854 Mon Sep 17 00:00:00 2001 From: Izzy Kauffman <121840901+izzy2fancy@users.noreply.github.com> Date: Sun, 17 Mar 2024 08:39:31 -0400 Subject: [PATCH] Add files via upload --- patcher.sh | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/patcher.sh b/patcher.sh index 6ed5660..f16ae49 100755 --- a/patcher.sh +++ b/patcher.sh @@ -5,8 +5,8 @@ set -e VERSION="15_5" OUTPUT="am2r_${VERSION}" DATA_FOLDER="data" -REPO_URL="https://github.com/izzy2fancy/AM2R-Autopatcher-Android" -HQ_MUSIC_URL="https://github.com/izzy2fancy/AM2R-Autopatcher-Android/raw/main/HDR_HQ_in-game_music/" +REPO_URL="https://github.com/izzy2fancy/AM2R-Autopatcher-Android/main/data/" +HQ_MUSIC_URL="https://github.com/izzy2fancy/AM2R-Autopatcher-Android/main/HDR_HQ_in-game_music/" cleanup_directories() { local directories=("assets" "AM2RWrapper" "$DATA_FOLDER" "HDR_HQ_in-game_music") @@ -17,8 +17,6 @@ cleanup_directories() { done } -cleanup_directories # Call the function here - echo "-------------------------------------------" echo "" echo "AM2R 1.5.5 Shell Autopatching Utility" @@ -42,13 +40,12 @@ fi # Clone the repository git clone "${REPO_URL}" "${DATA_FOLDER}" -# Move only the "data" folder and its contents -mv "${DATA_FOLDER}/data"/* "${DATA_FOLDER}" -rm -rf "${DATA_FOLDER}/data" +# If you only need specific folders, move them to the desired directory +mv "${DATA_FOLDER}/folder1"/* "${DATA_FOLDER}" +mv "${DATA_FOLDER}/folder2"/* "${DATA_FOLDER}" -# Move "HDR_HQ_in-game_music" folder -mv "${DATA_FOLDER}/HDR_HQ_in-game_music"/* "${DATA_FOLDER}" -rm -rf "${DATA_FOLDER}/HDR_HQ_in-game_music" +# Clean up +rm -rf "${DATA_FOLDER}/folder1" "${DATA_FOLDER}/folder2" # Check for AM2R_11.zip in downloads if [ ! -f "AM2R_11.zip" ]; then