From c71f2250cebbc67321ea306be9f3a878f8472bba Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Fri, 12 Nov 2021 02:14:13 +0100 Subject: [PATCH] fix: remove bad negation (#916) --- release.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/release.sh b/release.sh index 6e1c4af..f0e54b3 100755 --- a/release.sh +++ b/release.sh @@ -21,13 +21,13 @@ set +e for FILE in * do if [[ -f "${FILE}" ]] && [[ "${FILE}" != *.sha1 ]] && [[ "${FILE}" != *.sha256 ]]; then - echo "Uploading '${FILE}' at $( date "+%T" )" + echo "::group::Uploading '${FILE}' at $( date "+%T" )" gh release upload "${MS_TAG}" "${FILE}" "${FILE}.sha1" "${FILE}.sha256" 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 VSCodium --repo vscodium --tag "${MS_TAG}" "${FILE}" "${FILE}.sha1" "${FILE}.sha256" @@ -54,6 +54,8 @@ do exit 1 fi fi + + echo "::endgroup::" fi done