mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +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
22 lines
653 B
Bash
Executable File
22 lines
653 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (c) 2014-2015 The Bitcoin Core developers
|
|
# Distributed under the MIT software license, see the accompanying
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
export LC_ALL=C
|
|
if ! [[ "$2" =~ ^(git@)?(www.)?github.com(:|/)dashpay/dash(.git)?$ ]]; then
|
|
exit 0
|
|
fi
|
|
|
|
while read LINE; do
|
|
set -- A $LINE
|
|
if [ "$4" != "refs/heads/master" ]; then
|
|
continue
|
|
fi
|
|
if ! ./contrib/verify-commits/verify-commits.sh $3 > /dev/null 2>&1; then
|
|
echo "ERROR: A commit is not signed, can't push"
|
|
./contrib/verify-commits/verify-commits.sh
|
|
exit 1
|
|
fi
|
|
done < /dev/stdin
|