Skip to content

Commit 8c9b8a3

Browse files
committed
Replace script name with special parameter
1 parent 978682b commit 8c9b8a3

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)