Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd18d90a

Browse files
committed
Use 'echo' where possible to avoid explicit newlines
1 parent962f747 commitd18d90a

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

‎check-version.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,26 @@
55
# You may want to run "make release" instead of running this script directly.
66

77
set -eEfuo pipefail
8-
trap'printf "%s: Check failed. Stopping.\n" "$0" >&2' ERR
8+
trap'echo "$0: Check failed. Stopping." >&2' ERR
99

1010
readonly version_path='VERSION'
1111
readonly changes_path='doc/source/changes.rst'
1212

13-
printf'Checking current directory.\n'
13+
echo'Checking current directory.'
1414
test"$(cd --"$(dirname --"$0")"&& pwd)" ="$(pwd)"# Ugly, but portable.
1515

16-
printf'Checking that %s and %s exist and have no uncommitted changes.\n' \
17-
"$version_path""$changes_path"
16+
echo"Checking that$version_path and$changes_path exist and have no uncommitted changes."
1817
test -f"$version_path"
1918
test -f"$changes_path"
2019
git status -s --"$version_path""$changes_path"
2120
test -z"$(git status -s --"$version_path""$changes_path")"
2221

2322
# This section can be commented out, if absolutely necessary.
24-
printf'Checking that ALL changes are committed.\n'
23+
echo'Checking that ALL changes are committed.'
2524
git status -s --ignore-submodules
2625
test -z"$(git status -s --ignore-submodules)"
2726

28-
printf'Gathering current version, latest tag, and current HEAD commit info.\n'
27+
echo'Gathering current version, latest tag, and current HEAD commit info.'
2928
version_version="$(cat"$version_path")"
3029
changes_version="$(awk'/^[0-9]/ {print $0; exit}'"$changes_path")"
3130
config_opts="$(printf' -c versionsort.suffix=-%s' alpha beta pre rc RC)"
@@ -44,4 +43,4 @@ printf '%-14s = %s\n' 'VERSION file' "$version_version" \
4443
test"$version_version" ="$changes_version"
4544
test"$latest_tag" ="$version_version"
4645
test"$head_sha" ="$latest_tag_sha"
47-
printf'OK, everything looks good.\n'
46+
echo'OK, everything looks good.'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp