Skip to content

Commit c3cbbf8

Browse files
committed
update release.sh script
1 parent 9ecafc3 commit c3cbbf8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/changes/release.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ if [[ "${COMMAND}" == "start" ]]; then
1717
exit 1
1818
fi
1919

20+
set +e
2021
git ls-remote --exit-code --heads origin release
2122
EXIT_CODE=$?
2223
if [[ $EXIT_CODE == '0' ]]; then
2324
echo "Error: Remote branch 'release' already exists."
2425
exit 1
2526
fi
27+
set -e
2628

2729
git checkout main
2830
git pull

0 commit comments

Comments
 (0)