Skip to content

Commit

Permalink
fix: shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
aeimer committed Oct 25, 2023
1 parent 16c5832 commit ef75eec
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .ci-scripts/commit-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit ef75eec

Please sign in to comment.