mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-24 20:00:15 +10:00
fix: remove infinity loop in the release script (#904)
This commit is contained in:
13
release.sh
13
release.sh
@@ -25,17 +25,22 @@ do
|
|||||||
gh release upload "${MS_TAG}" "${FILE}" "${FILE}.sha1" "${FILE}.sha256"
|
gh release upload "${MS_TAG}" "${FILE}" "${FILE}.sha1" "${FILE}.sha256"
|
||||||
|
|
||||||
if [[ $? != 0 ]]; then
|
if [[ $? != 0 ]]; then
|
||||||
while true
|
for (( i=0; i<10; i++ ))
|
||||||
do
|
do
|
||||||
|
sleep $(( 15 * (i + 1)))
|
||||||
|
|
||||||
echo "RE-Uploading '${FILE}'"
|
echo "RE-Uploading '${FILE}'"
|
||||||
gh release upload --clobber "${MS_TAG}" "${FILE}" "${FILE}.sha1" "${FILE}.sha256"
|
gh release upload "${MS_TAG}" "${FILE}" "${FILE}.sha1" "${FILE}.sha256" --clobber
|
||||||
|
|
||||||
if [[ $? == 0 ]]; then
|
if [[ $? == 0 ]]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sleep 30
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [[ $? != 0 ]]; then
|
||||||
|
echo "'${FILE}' hasn't been uploaded!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user