From 30b68b44f1ec1c84e4a9a9fd1860b91fa3242112 Mon Sep 17 00:00:00 2001 From: Vlad Rindevich Date: Fri, 3 Sep 2021 16:50:33 +0300 Subject: [PATCH] chore(frontend): remove unnecessary output (#88) --- frontend/scripts/bump.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/frontend/scripts/bump.sh b/frontend/scripts/bump.sh index 1ec4ab83db..21b165770e 100644 --- a/frontend/scripts/bump.sh +++ b/frontend/scripts/bump.sh @@ -1,8 +1,12 @@ #!/usr/bin/env bash -alias ghr="curl https://api.github.com/repos/$REPO/branches/main/protection \ +branch=main + +# shellcheck disable=SC2139 +alias ghr="curl https://api.github.com/repos/$REPO/branches/$branch/protection \ -H 'Accept: application/vnd.github.v3+json' \ - -H 'Authorization: token $GITHUB_TOKEN'" + -H 'Authorization: token $GITHUB_TOKEN' \ + -s" node scripts/update-package-versions.js "$VERSION_TAG" @@ -17,8 +21,8 @@ protection_config=$(ghr -X GET) remapped=$(node scripts/protection-remap.js "$protection_config") -ghr -X PUT -d "$(echo "$remapped" | sed '$s/"enforce_admins":true/"enforce_admins":false/')" +ghr -X PUT -d "$(echo "$remapped" | sed '$s/"enforce_admins":true/"enforce_admins":false/')" > /dev/null -git push origin HEAD:main +git push origin HEAD:$branch -ghr -X PUT -d "$remapped" +ghr -X PUT -d "$remapped" > /dev/null