From c4160fc88d82fe184ea05e9e2aae6cc2d800cf62 Mon Sep 17 00:00:00 2001 From: Izzy Kauffman <121840901+izzy2fancy@users.noreply.github.com> Date: Sun, 17 Mar 2024 10:17:44 -0400 Subject: [PATCH] Update patcher.sh --- patcher.sh | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/patcher.sh b/patcher.sh index 4decd41..ff80282 100755 --- a/patcher.sh +++ b/patcher.sh @@ -39,19 +39,13 @@ if ! [ -f /data/data/com.termux/files/usr/bin/apkmod ]; then fi # Clone the repository -git clone -b "$BRANCH" "${REPO_URL}" "${DATA_FOLDER}" -cd "${DATA_FOLDER}" - -# Archive the specified folder -git archive --format zip --output data.zip "$PATCH_FOLDER" +git archive --remote="${REPO_URL}" --format=zip --output="${DATA_FOLDER}.zip" "${BRANCH}:${PATCH_FOLDER}" # Extract the downloaded patch data -yes | unzip data.zip -d ./ +unzip -q "${DATA_FOLDER}.zip" -d "${DATA_FOLDER}" # Remove the downloaded zip file -rm data.zip - -# Rest of your script goes here... +rm "${DATA_FOLDER}.zip" set - #check for AM2R_11.zip in downloads