build: double quote args and wrap in brace expansions (#1105)

This commit is contained in:
Frazer Smith
2022-06-05 20:30:23 +01:00
committed by GitHub
parent 31355417a8
commit 98d30bdc2c
14 changed files with 95 additions and 95 deletions

View File

@@ -33,9 +33,9 @@ do
gh release upload "${MS_TAG}" "${FILE}" "${FILE}.sha1" "${FILE}.sha256"
EXIT_STATUS=$?
echo "exit: $EXIT_STATUS"
echo "exit: ${EXIT_STATUS}"
if (( $EXIT_STATUS )); then
if (( "${EXIT_STATUS}" )); then
for (( i=0; i<10; i++ ))
do
github-release delete --owner "${OWNER}" --repo "${REPOSITORY}" --tag "${MS_TAG}" "${FILE}" "${FILE}.sha1" "${FILE}.sha256"
@@ -46,15 +46,15 @@ do
gh release upload "${MS_TAG}" "${FILE}" "${FILE}.sha1" "${FILE}.sha256"
EXIT_STATUS=$?
echo "exit: $EXIT_STATUS"
echo "exit: ${EXIT_STATUS}"
if ! (( $EXIT_STATUS )); then
if ! (( "${EXIT_STATUS}" )); then
break
fi
done
echo "exit: $EXIT_STATUS"
echo "exit: ${EXIT_STATUS}"
if (( $EXIT_STATUS )); then
if (( "${EXIT_STATUS}" )); then
echo "'${FILE}' hasn't been uploaded!"
github-release delete --owner "${OWNER}" --repo "${REPOSITORY}" --tag "${MS_TAG}" "${FILE}" "${FILE}.sha1" "${FILE}.sha256"