mirror of
https://github.com/dashpay/dash.git
synced 2024-12-29 13:59:06 +01:00
be4345ce12
000000035b20402dea3e8168165cd4eefdc97539 Obsolete #!/bin/bash shebang (DesWurstes) Pull request description: > `#!/bin/bash` assumes it is always installed to `/bin/` which can cause issues > `#!/usr/bin/env bash` searches the user's `PATH` to find the `bash` binary Details: https://github.com/dylanaraps/pure-bash-bible#obsolete-syntax I'm open to comments: Should I also fix `#!/bin/sh`? Tree-SHA512: b47bb4828116aa119f1899c68fee081270d51a898535490b9c616bf0f3660ad953f29c361eafc759bc64cdd54ee6eeecb2d79e9fdb5291a996a515c719805476
27 lines
780 B
Bash
Executable File
27 lines
780 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Copyright (c) 2017 The Bitcoin Core developers
|
|
# Distributed under the MIT software license, see the accompanying
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
#
|
|
# This script runs all contrib/devtools/lint-*.sh files, and fails if any exit
|
|
# with a non-zero status code.
|
|
|
|
# This script is intentionally locale dependent by not setting "export LC_ALL=C"
|
|
# in order to allow for the executed lint scripts to opt in or opt out of locale
|
|
# dependence themselves.
|
|
|
|
set -u
|
|
|
|
SCRIPTDIR=$(dirname "${BASH_SOURCE[0]}")
|
|
LINTALL=$(basename "${BASH_SOURCE[0]}")
|
|
|
|
for f in "${SCRIPTDIR}"/lint-*.sh; do
|
|
if [ "$(basename "$f")" != "$LINTALL" ]; then
|
|
if ! "$f"; then
|
|
echo "^---- failure generated from $f"
|
|
exit 1
|
|
fi
|
|
fi
|
|
done
|