From 807dc3346613dc9cd639c6ef4e82b2ed60911ee8 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Thu, 27 Jul 2023 15:21:22 -0500 Subject: [PATCH] fix: Typos and missing files --- build_revanced.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build_revanced.sh b/build_revanced.sh index 688f133..fbca99f 100755 --- a/build_revanced.sh +++ b/build_revanced.sh @@ -95,7 +95,7 @@ echo "$(date) | Starting check..." if [[ $2 != buildonly ]]; then # Create a backup of versions - cp verions.json versions.json.old + [ -f versions.json ] && cp versions.json versions.json.old # Fetch all the dependencies try=0 while :; do @@ -269,7 +269,7 @@ if [ $error == 1 ]; then if [[ $2 != buildonly ]]; then mv versions.json versions.json.fail - mv versions.json.old versions.json + [ -f versions.json.old ] && mv versions.json.old versions.json fi exit 4 fi