Skip to content

Commit

Permalink
Adjust copyright year(s) and shellcheck ignored rules per feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
meatballhat committed Jan 18, 2018
1 parent 0d68b1a commit 4ce33c3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions gimme
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ set -o pipefail
[[ ${GIMME_DEBUG} ]] && set -x

GIMME_VERSION="v1.3.0"
GIMME_COPYRIGHT="Copyright (c) 2018 Dan Buch, Tianon Gravi, Travis CI GmbH"
GIMME_COPYRIGHT="Copyright (c) 2015-2018 Dan Buch, Tianon Gravi, Travis CI GmbH"
GIMME_LICENSE_URL="https://raw.githubusercontent.com/travis-ci/gimme/v1.3.0/LICENSE"
export GIMME_VERSION
export GIMME_COPYRIGHT
Expand Down Expand Up @@ -398,7 +398,8 @@ _list_versions() {
}

_list_known() {
local exp="go([[:alnum:]\\.]*)\\.src.*" # :alnum: catches beta versions too
# shellcheck disable=SC1117
local exp="go([[:alnum:]\.]*)\.src.*" # :alnum: catches beta versions too
local list="${GIMME_TMP}/known-versions"

local known
Expand All @@ -408,7 +409,8 @@ _list_known() {

while read -r line; do
if [[ "${line}" =~ ${exp} ]]; then
known="$known\\n${BASH_REMATCH[1]}"
# shellcheck disable=SC1117
known="$known\n${BASH_REMATCH[1]}"
fi
done <"${list}"

Expand Down Expand Up @@ -451,7 +453,8 @@ _update_stable() {

while nextPageToken=$(jq --exit-status --raw-output '.nextPageToken' <"$tmp_versions"); do
_do_curl "${url}&pageToken=${nextPageToken}" "${tmp_versions}"
vers="${vers}\\n$(jq -r '.items[].name | capture("go(?<ver>[[:digit:]\\.]*)\\.src.*").ver' <"$tmp_versions")"
# shellcheck disable=SC1117
vers="${vers}\n$(jq -r '.items[].name | capture("go(?<ver>[[:digit:]\\.]*)\\.src.*").ver' <"$tmp_versions")"
done

rm -f "${tmp_versions}" &>/dev/null
Expand Down

0 comments on commit 4ce33c3

Please sign in to comment.