mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
scripts: Integrate ./scripts/release with new code for tagging modules.
Changes: - signing tags. - allows to override BRANCH and REPOSITORY using env variables. Tested by a release in my private fork: BRANCH="20201126-ptabor-release" REPOSITORY="git@github.com:ptabor/etcd.git" ./scripts/release 3.5.0-alpha.20
This commit is contained in:
9
test.sh
9
test.sh
@@ -322,10 +322,15 @@ function shellws_pass {
|
||||
log_callout "Ensuring no tab-based indention in shell scripts"
|
||||
local files
|
||||
files=$(find ./ -name '*.sh' -print0 | xargs -0 )
|
||||
log_cmd "grep -E -n $'^ *\t' ${files}"
|
||||
# shellcheck disable=SC2206
|
||||
files=( ${files[@]} "./scripts/build-binary" "./scripts/build-docker" "./scripts/release" )
|
||||
log_cmd "grep -E -n $'^ *\t' ${files[*]}"
|
||||
# shellcheck disable=SC2086
|
||||
if grep -E -n $'^ *\t' ${files} | sed $'s|\t|[\\\\tab]|g'; then
|
||||
if grep -E -n $'^ *\t' "${files[@]}" | sed $'s|\t|[\\\\tab]|g'; then
|
||||
log_error "FAIL: found tab-based indention in bash scripts. Use ' ' (double space)."
|
||||
local files_with_tabs
|
||||
files_with_tabs=$(grep -E -l $'^ *\t' "${files[@]}")
|
||||
log_warning "Try: sed -i 's|\t| |g' $files_with_tabs"
|
||||
return 1
|
||||
else
|
||||
log_success "SUCCESS: no tabulators found."
|
||||
|
||||
Reference in New Issue
Block a user