Skip to content

Commit f7b222e

Browse files
committed
[fix] Too much safety when checking git
Signed-off-by: Dominika <sokolov.dominika@gmail.com>
1 parent 0777896 commit f7b222e

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

scripts/runAutomatedRelease.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ git pull || exit $?
2828
git submodule update --init --recursive || exit $?
2929

3030
# Update mirror
31-
cd "$KAMI_MIRROR_DIR" || exit $? || exit $?
32-
check_git || exit $? || exit $?
33-
31+
cd "$KAMI_MIRROR_DIR" || exit $?
3432
git reset --hard master || exit $?
3533
git pull "$KAMI_DIR" || exit $?
3634
git submodule update --init --recursive || exit $?

scripts/uploadRelease.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ check_var "KAMI_REPO_MAJOR" "$KAMI_REPO_MAJOR" || exit $?
1616
check_var "KAMI_REPO_NIGHTLY" "$KAMI_REPO_NIGHTLY" || exit $?
1717
check_var "GITHUB_TOKEN" "$GITHUB_TOKEN" || exit $?
1818
check_var "KAMI_DIR" "$KAMI_DIR" || exit $?
19-
check_git || exit $?
2019

2120
cd "$KAMI_DIR" || exit $?
2221
BRANCH="$(git symbolic-ref -q HEAD | sed "s/^refs\/heads\///g")"

0 commit comments

Comments
 (0)