Skip to content

Commit d739184

Browse files
author
MarcoFalke
committed
Merge #15216: Scripts and tools: Replace script name with a special parameter
8c9b8a3 Replace script name with special parameter (Hennadii Stepanov) Pull request description: This PR improves UX; all others shell scripts ~(excluding travis linters)~ in the bitcoin repo have this feature. Before: ![screenshot from 2019-01-20 17-45-42](https://user-images.githubusercontent.com/32963518/51442159-b5cfec80-1ce2-11e9-8017-3b0b464ccaf8.png) After: ![screenshot from 2019-01-20 18-30-27](https://user-images.githubusercontent.com/32963518/51442166-bf595480-1ce2-11e9-9520-481518c3b288.png) cc: @jamesob @laanwj Tree-SHA512: 7924e5658a2efe81fd5591390ca5af1ff0558bd9d5693363b9f8addedb1d6b90aa16f11c9b361c6fdfbd931a959255817473a240c175dee95aefc7d2d4a10a36
2 parents ea022d9 + 8c9b8a3 commit d739184

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

contrib/install_db4.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export LC_ALL=C
66
set -e
77

88
if [ -z "${1}" ]; then
9-
echo "Usage: ./install_db4.sh <base-dir> [<extra-bdb-configure-flag> ...]"
9+
echo "Usage: $0 <base-dir> [<extra-bdb-configure-flag> ...]"
1010
echo
1111
echo "Must specify a single argument: the directory in which db4 will be built."
1212
echo "This is probably \`pwd\` if you're at the root of the bitcoin repository."

test/lint/lint-whitespace.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
#
3-
# Copyright (c) 2017 The Bitcoin Core developers
3+
# Copyright (c) 2017-2019 The Bitcoin Core developers
44
# Distributed under the MIT software license, see the accompanying
55
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
66
#
@@ -12,11 +12,11 @@ export LC_ALL=C
1212
while getopts "?" opt; do
1313
case $opt in
1414
?)
15-
echo "Usage: .lint-whitespace.sh [N]"
16-
echo " TRAVIS_COMMIT_RANGE='<commit range>' .lint-whitespace.sh"
17-
echo " .lint-whitespace.sh -?"
15+
echo "Usage: $0 [N]"
16+
echo " TRAVIS_COMMIT_RANGE='<commit range>' $0"
17+
echo " $0 -?"
1818
echo "Checks unstaged changes, the previous N commits, or a commit range."
19-
echo "TRAVIS_COMMIT_RANGE='47ba2c3...ee50c9e' .lint-whitespace.sh"
19+
echo "TRAVIS_COMMIT_RANGE='47ba2c3...ee50c9e' $0"
2020
exit 0
2121
;;
2222
esac

0 commit comments

Comments
 (0)