mirror of
https://github.com/Unimatrix0/update_ombi.git
synced 2025-08-19 21:04:04 -07:00
feat(updater): skipping size verification for now
This commit is contained in:
parent
902a81c790
commit
b9b040394a
1 changed files with 19 additions and 19 deletions
|
@ -219,25 +219,25 @@ do
|
||||||
.log 2 "Build version does not match expected version"
|
.log 2 "Build version does not match expected version"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
.log 6 "Latest version: $version...determining expected file size..."
|
#.log 6 "Latest version: $version...determining expected file size..."
|
||||||
size=$(curl -sL https://ci.appveyor.com/api/buildjobs/$jobId/artifacts | grep -Po '(?<="'$filename'","type":"File","size":)(\d+)')
|
#size=$(curl -sL https://ci.appveyor.com/api/buildjobs/$jobId/artifacts | grep -Po '(?<="'$filename'","type":"File","size":)(\d+)')
|
||||||
.log 7 "size: $size"
|
#.log 7 "size: $size"
|
||||||
if [ -e $size ]; then
|
#if [ -e $size ]; then
|
||||||
if [ $i -lt $j ]; then
|
# if [ $i -lt $j ]; then
|
||||||
.log 3 "Unable to determine update file size...[attempt $i of $j]"
|
# .log 3 "Unable to determine update file size...[attempt $i of $j]"
|
||||||
else
|
# else
|
||||||
.log 2 "Unable to determine update file size...[attempt $i of $j]...Bailing!"
|
# .log 2 "Unable to determine update file size...[attempt $i of $j]...Bailing!"
|
||||||
exit 2
|
# exit 2
|
||||||
fi
|
# fi
|
||||||
i+=1
|
# i+=1
|
||||||
continue
|
# continue
|
||||||
elif [[ $size =~ ^-?[0-9]+$ ]]; then
|
#elif [[ $size =~ ^-?[0-9]+$ ]]; then
|
||||||
.log 6 "Expected file size: $size...downloading..."
|
# .log 6 "Expected file size: $size...downloading..."
|
||||||
break
|
# break
|
||||||
else
|
#else
|
||||||
.log 1 "Invalid file size value...bailing!"
|
# .log 1 "Invalid file size value...bailing!"
|
||||||
exit 99
|
# exit 99
|
||||||
fi
|
#fi
|
||||||
done
|
done
|
||||||
tempdir=$(mktemp -d)
|
tempdir=$(mktemp -d)
|
||||||
file="$tempdir/ombi_$version.tar.gz"
|
file="$tempdir/ombi_$version.tar.gz"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue