mirror of
https://github.com/SinTan1729/ReVancedBuilder.git
synced 2024-12-26 12:48:36 -06:00
fix: Properly manager versions on failure
This commit is contained in:
parent
65820f27bf
commit
481e42d32c
1 changed files with 3 additions and 1 deletions
|
@ -92,6 +92,7 @@ check_flag=false
|
|||
# Get inside the working directory
|
||||
cd "$WDIR"
|
||||
echo "$(date) | Starting check..."
|
||||
cp verions.json versions.json.old
|
||||
|
||||
# Fetch all the dependencies
|
||||
try=0
|
||||
|
@ -253,7 +254,8 @@ if [ $error == 1 ]; then
|
|||
-d "$MESSAGE" \
|
||||
"$NTFY_URL/$NTFY_TOPIC"
|
||||
fi
|
||||
mv versions.json versions.json.bk
|
||||
mv versions.json versions.json.fail
|
||||
mv versions.json.old versions.json
|
||||
exit 4
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue