mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
Apply shellcheck suggestions
This commit is contained in:
parent
ffe950bbc7
commit
ac953c5ac7
@ -21,7 +21,7 @@ cd build-ci/dashcore-$BUILD_TARGET
|
||||
|
||||
if [ "$SOCKETEVENTS" = "" ]; then
|
||||
# Let's switch socketevents mode to some random mode
|
||||
R=$(($RANDOM%3))
|
||||
R=$((RANDOM%3))
|
||||
if [ "$R" == "0" ]; then
|
||||
SOCKETEVENTS="select"
|
||||
elif [ "$R" == "1" ]; then
|
||||
|
@ -79,7 +79,7 @@ script: |
|
||||
fi
|
||||
|
||||
# We include the GCC version in all wrappers so that ccache can detect compiler upgrades when hashing the wrappers
|
||||
GCCVERSION=`gcc --version | head -1`
|
||||
GCCVERSION=$(gcc --version | head -1)
|
||||
|
||||
# Use $LIB in LD_PRELOAD to avoid hardcoding the dir (See `man ld.so`)
|
||||
function create_global_faketime_wrappers {
|
||||
|
@ -67,7 +67,7 @@ script: |
|
||||
fi
|
||||
|
||||
# We include the GCC version in all wrappers so that ccache can detect compiler upgrades when hashing the wrappers
|
||||
GCCVERSION=`gcc --version | head -1`
|
||||
GCCVERSION=$(gcc --version | head -1)
|
||||
|
||||
# Use $LIB in LD_PRELOAD to avoid hardcoding the dir (See `man ld.so`)
|
||||
function create_global_faketime_wrappers {
|
||||
@ -107,7 +107,7 @@ script: |
|
||||
echo "# GCCVERSION=${GCCVERSION}" >> ${WRAP_DIR}/${i}-${prog}
|
||||
echo "REAL=\`which -a ${i}-${prog}-posix | grep -v ${WRAP_DIR}/${i}-${prog} | head -1\`" >> ${WRAP_DIR}/${i}-${prog}
|
||||
echo '# Add the gcc version to the wrapper so that ccache takes this into account (we use CCACHE_COMPILERCHECK=content)' >> ${WRAP_DIR}/${i}-${prog}
|
||||
echo "# `${prog} --version | head -1`" >> ${WRAP_DIR}/${i}-${prog}
|
||||
echo "# $(${prog} --version | head -1)" >> ${WRAP_DIR}/${i}-${prog}
|
||||
echo "export LD_PRELOAD='/usr/\$LIB/faketime/libfaketime.so.1'" >> ${WRAP_DIR}/${i}-${prog}
|
||||
echo "export FAKETIME=\"$1\"" >> ${WRAP_DIR}/${i}-${prog}
|
||||
echo "export COMPILER_PATH=${WRAP_DIR}/${i}" >> ${WRAP_DIR}/${i}-${prog}
|
||||
|
Loading…
Reference in New Issue
Block a user