Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Dsouza committed Oct 30, 2017
1 parent ec6bbc2 commit beb9228
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/check
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# vim: set ft=sh

set -e -u

exec 3>&1 # make stdout available as fd 3 for the result
exec 1>&2 # redirect all output to stderr for logging

Expand All @@ -17,11 +18,10 @@ configure_ssl_verification "${payload}"

uri="$(jq -r '.source.uri // ""' < "${payload}")"
private_token="$(jq -r '.source.private_token // ""' < "${payload}")"
private_key="$(jq -r '.source.private_key // ""' < "${payload}")"
no_ssl="$(jq -r '.source.no_ssl // ""' < "${payload}")"
version_sha="$(jq -r '.version.sha // ""' < "${payload}")"

if [[ ! -z "${private_key}" ]]; then
if [[ "${uri}" == "git@"* ]]; then
gitlab_host="$(echo "${uri}" | sed -rn 's/git@(.*):(.*)\.git/\1/p')"
project_path="$(echo "${uri}" | sed -rn 's/git@(.*):(.*)\.git/\2/p')"
protocol='https'
Expand Down

0 comments on commit beb9228

Please sign in to comment.