From ef75eec4bc8b43547ade81693d847fc915280db7 Mon Sep 17 00:00:00 2001 From: Alexander Eimer Date: Wed, 25 Oct 2023 17:09:15 +0200 Subject: [PATCH] fix: shellcheck --- .ci-scripts/commit-push.sh | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.ci-scripts/commit-push.sh b/.ci-scripts/commit-push.sh index 544eab4..6e63c0d 100755 --- a/.ci-scripts/commit-push.sh +++ b/.ci-scripts/commit-push.sh @@ -4,18 +4,9 @@ set -euo pipefail # Enable debug - print commands #set -x -SCRIPT_PATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" -# shellcheck source-path=.ci-scripts -source "$SCRIPT_PATH/env.sh" - git add Aliases README.md git commit --quiet -m "chore: update Aliases" || { echo "Nothing to commit or commit failed, will exit now" exit 0 } - -if [[ "$runnerType" == "gitlab" ]]; then - git push "https://oauth2:${REPO_WRITE_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git" "HEAD:$CI_COMMIT_BRANCH" -elif [[ "$runnerType" == "github" ]]; then - git push -fi +git push "https://oauth2:${REPO_WRITE_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git" "HEAD:$CI_COMMIT_BRANCH"