Apply shellcheck suggestions

This commit is contained in:
UdjinM6 2021-10-24 00:52:41 +03:00
parent ffe950bbc7
commit ac953c5ac7
No known key found for this signature in database
GPG Key ID: 83592BD1400D58D9
3 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ cd build-ci/dashcore-$BUILD_TARGET
if [ "$SOCKETEVENTS" = "" ]; then if [ "$SOCKETEVENTS" = "" ]; then
# Let's switch socketevents mode to some random mode # Let's switch socketevents mode to some random mode
R=$(($RANDOM%3)) R=$((RANDOM%3))
if [ "$R" == "0" ]; then if [ "$R" == "0" ]; then
SOCKETEVENTS="select" SOCKETEVENTS="select"
elif [ "$R" == "1" ]; then elif [ "$R" == "1" ]; then

View File

@ -79,7 +79,7 @@ script: |
fi fi
# We include the GCC version in all wrappers so that ccache can detect compiler upgrades when hashing the wrappers # 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`) # Use $LIB in LD_PRELOAD to avoid hardcoding the dir (See `man ld.so`)
function create_global_faketime_wrappers { function create_global_faketime_wrappers {

View File

@ -67,7 +67,7 @@ script: |
fi fi
# We include the GCC version in all wrappers so that ccache can detect compiler upgrades when hashing the wrappers # 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`) # Use $LIB in LD_PRELOAD to avoid hardcoding the dir (See `man ld.so`)
function create_global_faketime_wrappers { function create_global_faketime_wrappers {
@ -107,7 +107,7 @@ script: |
echo "# GCCVERSION=${GCCVERSION}" >> ${WRAP_DIR}/${i}-${prog} 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 "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 '# 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 LD_PRELOAD='/usr/\$LIB/faketime/libfaketime.so.1'" >> ${WRAP_DIR}/${i}-${prog}
echo "export FAKETIME=\"$1\"" >> ${WRAP_DIR}/${i}-${prog} echo "export FAKETIME=\"$1\"" >> ${WRAP_DIR}/${i}-${prog}
echo "export COMPILER_PATH=${WRAP_DIR}/${i}" >> ${WRAP_DIR}/${i}-${prog} echo "export COMPILER_PATH=${WRAP_DIR}/${i}" >> ${WRAP_DIR}/${i}-${prog}