mirror of
https://github.com/izzy2lost/AM2R-Autopatcher-Android.git
synced 2026-06-19 01:20:10 -07:00
Update patcher.sh
This commit is contained in:
+3
-9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user