fix: Ignore errors on empty versions file

This commit is contained in:
Sayantan Santra 2023-07-27 15:23:35 -05:00
parent 807dc33466
commit 4bcb625392
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F

View file

@ -95,7 +95,7 @@ echo "$(date) | Starting check..."
if [[ $2 != buildonly ]]; then
# Create a backup of versions
[ -f versions.json ] && cp versions.json versions.json.old
[ -f versions.json ] && cp versions.json versions.json.old || touch versions.json
# Fetch all the dependencies
try=0
while :; do