mirror of
https://github.com/SinTan1729/ReVancedBuilder.git
synced 2024-12-26 20:58:37 -06:00
fix: buildonly should never download files
This commit is contained in:
parent
c5a0b9a104
commit
d0bdcb7c83
1 changed files with 54 additions and 49 deletions
|
@ -92,8 +92,10 @@ check_flag=false
|
||||||
# Get inside the working directory
|
# Get inside the working directory
|
||||||
cd "$WDIR"
|
cd "$WDIR"
|
||||||
echo "$(date) | Starting check..."
|
echo "$(date) | Starting check..."
|
||||||
cp verions.json versions.json.old
|
|
||||||
|
|
||||||
|
if [[ $2 != buildonly ]]; then
|
||||||
|
# Create a backup of versions
|
||||||
|
cp verions.json versions.json.old
|
||||||
# Fetch all the dependencies
|
# Fetch all the dependencies
|
||||||
try=0
|
try=0
|
||||||
while :; do
|
while :; do
|
||||||
|
@ -145,7 +147,8 @@ if [[ $flag == false && $2 != force ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Download required apk files
|
# Download required apk files
|
||||||
[[ $2 != buildonly ]] && "$SDIR/download_apkmirror.sh" "$WDIR"
|
"$SDIR/download_apkmirror.sh" "$WDIR"
|
||||||
|
fi
|
||||||
|
|
||||||
# If the variables are NOT empty, call populate_patches with proper arguments
|
# If the variables are NOT empty, call populate_patches with proper arguments
|
||||||
[[ ! -z "$excluded_patches" ]] && populate_patches "-e" "$excluded_patches"
|
[[ ! -z "$excluded_patches" ]] && populate_patches "-e" "$excluded_patches"
|
||||||
|
@ -254,8 +257,10 @@ if [ $error == 1 ]; then
|
||||||
-d "$MESSAGE" \
|
-d "$MESSAGE" \
|
||||||
"$NTFY_URL/$NTFY_TOPIC"
|
"$NTFY_URL/$NTFY_TOPIC"
|
||||||
fi
|
fi
|
||||||
|
if [[ $2 != buildonly ]]; then
|
||||||
mv versions.json versions.json.fail
|
mv versions.json versions.json.fail
|
||||||
mv versions.json.old versions.json
|
mv versions.json.old versions.json
|
||||||
|
fi
|
||||||
exit 4
|
exit 4
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue