From 46c052ae72de2c310da50b1f5b1df225d9d34174 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Tue, 8 Aug 2023 15:25:33 -0500 Subject: [PATCH] fix: Version management --- build_revanced.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build_revanced.sh b/build_revanced.sh index d6a81d3..13b29dc 100755 --- a/build_revanced.sh +++ b/build_revanced.sh @@ -269,8 +269,10 @@ if [ $error == 1 ]; then $GOTIFY_NOTIFICATIONS && gotify_send_msg "$msg" $NTFY_NOTIFICATIONS && ntfy_send_msg "$msg" - [[ $2 != buildonly ]] && mv versions-new.json versions-fail.json || mv versions-new.json versions.json + [[ $2 != buildonly ]] && mv versions-new.json versions-fail.json || rm versions-new.json exit 4 +else + mv versions-new.json versions.json fi if $TG_UPLOAD; then