mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
Make shellcheck happy
This commit is contained in:
parent
bdb479db4b
commit
f7218d1899
@ -38,7 +38,7 @@ fi
|
||||
|
||||
BITCOIN_CONFIG_ALL="--disable-dependency-tracking --prefix=$BUILD_DIR/depends/$HOST --bindir=$OUT_DIR/bin --libdir=$OUT_DIR/lib"
|
||||
|
||||
test -n "$USE_SHELL" && eval '"$USE_SHELL" -c "./autogen.sh"' || ./autogen.sh
|
||||
( test -n "$USE_SHELL" && eval '"$USE_SHELL" -c "./autogen.sh"' ) || ./autogen.sh
|
||||
|
||||
rm -rf build-ci
|
||||
mkdir build-ci
|
||||
|
@ -6,7 +6,7 @@ export LC_ALL=C
|
||||
|
||||
set -e
|
||||
|
||||
PASS_ARGS="$@"
|
||||
PASS_ARGS="$*"
|
||||
|
||||
source ./ci/matrix.sh
|
||||
|
||||
@ -42,7 +42,9 @@ echo "Collecting logs..."
|
||||
BASEDIR=$(ls testdatadirs)
|
||||
if [ "$BASEDIR" != "" ]; then
|
||||
mkdir testlogs
|
||||
for d in $(ls testdatadirs/$BASEDIR | grep -v '^cache$'); do
|
||||
for d in testdatadirs/$BASEDIR; do
|
||||
[[ -e "$d" ]] || break # found nothing
|
||||
[[ "$d" == "cache" ]] && continue # skip cache dir
|
||||
mkdir testlogs/$d
|
||||
./test/functional/combine_logs.py -c ./testdatadirs/$BASEDIR/$d > ./testlogs/$d/combined.log
|
||||
./test/functional/combine_logs.py --html ./testdatadirs/$BASEDIR/$d > ./testlogs/$d/combined.html
|
||||
|
@ -14,7 +14,7 @@ TEMPLIST=${TEMPDIR}/signatures.txt
|
||||
OUT=signature-osx.tar.gz
|
||||
OUTROOT=osx
|
||||
|
||||
if [ ! -n "$1" ]; then
|
||||
if [ -z "$1" ]; then
|
||||
echo "usage: $0 <codesign args>"
|
||||
echo "example: $0 -s MyIdentity"
|
||||
exit 1
|
||||
|
@ -31,7 +31,7 @@ tc class add dev ${IF} parent 1:1 classid 1:11 htb rate ${LIMIT} ceil ${LIMIT} p
|
||||
tc filter add dev ${IF} parent 1: protocol ip prio 1 handle 1 fw classid 1:10
|
||||
tc filter add dev ${IF} parent 1: protocol ip prio 2 handle 2 fw classid 1:11
|
||||
|
||||
if [ ! -z "${LOCALNET_V6}" ] ; then
|
||||
if [ -n "${LOCALNET_V6}" ] ; then
|
||||
# v6 cannot have the same priority value as v4
|
||||
tc filter add dev ${IF} parent 1: protocol ipv6 prio 3 handle 1 fw classid 1:10
|
||||
tc filter add dev ${IF} parent 1: protocol ipv6 prio 4 handle 2 fw classid 1:11
|
||||
@ -54,7 +54,7 @@ fi
|
||||
iptables -t mangle -A OUTPUT -p tcp -m tcp --dport 9999 ! -d ${LOCALNET_V4} -j MARK --set-mark 0x2
|
||||
iptables -t mangle -A OUTPUT -p tcp -m tcp --sport 9999 ! -d ${LOCALNET_V4} -j MARK --set-mark 0x2
|
||||
|
||||
if [ ! -z "${LOCALNET_V6}" ] ; then
|
||||
if [ -n "${LOCALNET_V6}" ] ; then
|
||||
ip6tables -t mangle -A OUTPUT -p tcp -m tcp --dport 9999 ! -d ${LOCALNET_V6} -j MARK --set-mark 0x4
|
||||
ip6tables -t mangle -A OUTPUT -p tcp -m tcp --sport 9999 ! -d ${LOCALNET_V6} -j MARK --set-mark 0x4
|
||||
fi
|
||||
|
@ -96,9 +96,9 @@ while true; do
|
||||
FILE_HASHES=""
|
||||
for FILE in $(git ls-tree --full-tree -r --name-only "$CURRENT_COMMIT" | LC_ALL=C sort); do
|
||||
if [ "$HAVE_GNU_SHA512" = 1 ]; then
|
||||
HASH=$(git cat-file blob "$CURRENT_COMMIT":"$FILE" | sha512sum | { read FIRST OTHER; echo $FIRST; } )
|
||||
HASH=$(git cat-file blob "$CURRENT_COMMIT":"$FILE" | sha512sum | { read FIRST _; echo $FIRST; } )
|
||||
else
|
||||
HASH=$(git cat-file blob "$CURRENT_COMMIT":"$FILE" | shasum -a 512 | { read FIRST OTHER; echo $FIRST; } )
|
||||
HASH=$(git cat-file blob "$CURRENT_COMMIT":"$FILE" | shasum -a 512 | { read FIRST _; echo $FIRST; } )
|
||||
fi
|
||||
[ "$FILE_HASHES" != "" ] && FILE_HASHES="$FILE_HASHES"'
|
||||
'
|
||||
|
@ -8,7 +8,7 @@ if [ -z "$OSSLSIGNCODE" ]; then
|
||||
OSSLSIGNCODE=osslsigncode
|
||||
fi
|
||||
|
||||
if [ ! -n "$1" ]; then
|
||||
if [ -z "$1" ]; then
|
||||
echo "usage: $0 <osslcodesign args>"
|
||||
echo "example: $0 -key codesign.key"
|
||||
exit 1
|
||||
|
@ -3,7 +3,7 @@
|
||||
export LC_ALL=C
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
cd $DIR/..
|
||||
cd $DIR/.. || exit
|
||||
|
||||
DOCKER_IMAGE=${DOCKER_IMAGE:-dashpay/dashd-develop}
|
||||
DOCKER_TAG=${DOCKER_TAG:-latest}
|
||||
|
@ -3,7 +3,7 @@
|
||||
export LC_ALL=C
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
cd $DIR/..
|
||||
cd $DIR/.. || exit
|
||||
|
||||
DOCKER_IMAGE=${DOCKER_IMAGE:-dashpay/dashd-develop}
|
||||
DOCKER_TAG=${DOCKER_TAG:-latest}
|
||||
|
@ -19,7 +19,7 @@ find_latest_squash()
|
||||
sub=
|
||||
git log --grep="^git-subtree-dir: $dir/*\$" \
|
||||
--pretty=format:'START %H%n%s%n%n%b%nEND%n' "$COMMIT" |
|
||||
while read a b junk; do
|
||||
while read a b _; do
|
||||
case "$a" in
|
||||
START) sq="$b" ;;
|
||||
git-subtree-mainline:) main="$b" ;;
|
||||
@ -49,7 +49,7 @@ if [ -z "$latest_squash" ]; then
|
||||
fi
|
||||
|
||||
set $latest_squash
|
||||
old=$1
|
||||
# old=$1
|
||||
rev=$2
|
||||
if [ "d$(git cat-file -t $rev 2>/dev/null)" != dcommit ]; then
|
||||
echo "ERROR: subtree commit $rev unavailable. Fetch/update the subtree repository" >&2
|
||||
|
Loading…
Reference in New Issue
Block a user