diff options
| author | Hennadii Stepanov <[email protected]> | 2019-01-20 18:32:47 +0200 |
|---|---|---|
| committer | Hennadii Stepanov <[email protected]> | 2019-02-12 23:25:54 +0200 |
| commit | 8c9b8a3668f3ecdd0fded01c2469d6c7d6168c39 (patch) | |
| tree | 1e9f175e74936e21565d7a218ab18b110c251e2e | |
| parent | Merge #15194: Add comment describing fDisconnect behavior (diff) | |
| download | discoin-8c9b8a3668f3ecdd0fded01c2469d6c7d6168c39.tar.xz discoin-8c9b8a3668f3ecdd0fded01c2469d6c7d6168c39.zip | |
Replace script name with special parameter
| -rwxr-xr-x | contrib/install_db4.sh | 2 | ||||
| -rwxr-xr-x | test/lint/lint-whitespace.sh | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/contrib/install_db4.sh b/contrib/install_db4.sh index e90b8af7e..088d1c9dc 100755 --- a/contrib/install_db4.sh +++ b/contrib/install_db4.sh @@ -6,7 +6,7 @@ export LC_ALL=C set -e if [ -z "${1}" ]; then - echo "Usage: ./install_db4.sh <base-dir> [<extra-bdb-configure-flag> ...]" + echo "Usage: $0 <base-dir> [<extra-bdb-configure-flag> ...]" echo echo "Must specify a single argument: the directory in which db4 will be built." echo "This is probably \`pwd\` if you're at the root of the bitcoin repository." diff --git a/test/lint/lint-whitespace.sh b/test/lint/lint-whitespace.sh index f318e1907..d5c1dee42 100755 --- a/test/lint/lint-whitespace.sh +++ b/test/lint/lint-whitespace.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # -# Copyright (c) 2017 The Bitcoin Core developers +# Copyright (c) 2017-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # @@ -12,11 +12,11 @@ export LC_ALL=C while getopts "?" opt; do case $opt in ?) - echo "Usage: .lint-whitespace.sh [N]" - echo " TRAVIS_COMMIT_RANGE='<commit range>' .lint-whitespace.sh" - echo " .lint-whitespace.sh -?" + echo "Usage: $0 [N]" + echo " TRAVIS_COMMIT_RANGE='<commit range>' $0" + echo " $0 -?" echo "Checks unstaged changes, the previous N commits, or a commit range." - echo "TRAVIS_COMMIT_RANGE='47ba2c3...ee50c9e' .lint-whitespace.sh" + echo "TRAVIS_COMMIT_RANGE='47ba2c3...ee50c9e' $0" exit 0 ;; esac |