fix: Version management

This commit is contained in:
Sayantan Santra 2023-08-08 15:25:33 -05:00
parent 8231d104fa
commit 46c052ae72
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F

View file

@ -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