From 6d440555564a65db4779d4d51632ab41bd329bb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Fri, 11 Dec 2020 18:15:16 +0100 Subject: [PATCH] Fix inconsistent indentation --- scripts/chk_shellscripts/chk_shellscripts.sh | 4 ++-- scripts/ci/build_emscripten.sh | 8 ++++---- scripts/soltest.sh | 4 ++-- scripts/uniqueErrors.sh | 8 ++++---- scripts/wasm-rebuild/docker-scripts/genbytecode.sh | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/scripts/chk_shellscripts/chk_shellscripts.sh b/scripts/chk_shellscripts/chk_shellscripts.sh index 8eccc551727d..12ece3f4ec7d 100755 --- a/scripts/chk_shellscripts/chk_shellscripts.sh +++ b/scripts/chk_shellscripts/chk_shellscripts.sh @@ -17,8 +17,8 @@ find . -type f -name "*.sh" | sort >"${FOUND_FILES_TMP}" SHELLCHECK=${SHELLCHECK:-"$(command -v -- shellcheck)"} if [ ! -f "${SHELLCHECK}" ]; then - echo "error: shellcheck '${SHELLCHECK}' not found." - exit 1 + echo "error: shellcheck '${SHELLCHECK}' not found." + exit 1 fi FILES=$(join -v2 "${IGNORE_FILES_TMP}" "${FOUND_FILES_TMP}") diff --git a/scripts/ci/build_emscripten.sh b/scripts/ci/build_emscripten.sh index bbe76ba939c2..cf806541d24a 100755 --- a/scripts/ci/build_emscripten.sh +++ b/scripts/ci/build_emscripten.sh @@ -62,10 +62,10 @@ fi mkdir -p $BUILD_DIR cd $BUILD_DIR emcmake cmake \ - -DCMAKE_BUILD_TYPE=Release \ - -DBoost_USE_STATIC_LIBS=1 \ - -DBoost_USE_STATIC_RUNTIME=1 \ - -DTESTS=0 \ + -DCMAKE_BUILD_TYPE=Release \ + -DBoost_USE_STATIC_LIBS=1 \ + -DBoost_USE_STATIC_RUNTIME=1 \ + -DTESTS=0 \ .. make soljson # Patch soljson.js for backwards compatibility. diff --git a/scripts/soltest.sh b/scripts/soltest.sh index bb4c48691bd8..b732e986df9a 100755 --- a/scripts/soltest.sh +++ b/scripts/soltest.sh @@ -44,7 +44,7 @@ do BOOST_OPTIONS="${BOOST_OPTIONS} $1" ;; --help) - usage + usage exit 0 ;; --run_test | -t ) @@ -64,4 +64,4 @@ if [ "$USE_DEBUGGER" -ne "0" ]; then DEBUG_PREFIX=${DEBUGGER} fi -exec ${DEBUG_PREFIX} ${SOLIDITY_BUILD_DIR}/test/soltest ${BOOST_OPTIONS} -- --testpath ${REPO_ROOT}/test ${SOLTEST_OPTIONS} +exec "${DEBUG_PREFIX}" "${SOLIDITY_BUILD_DIR}/test/soltest" ${BOOST_OPTIONS} -- --testpath "${REPO_ROOT}/test" ${SOLTEST_OPTIONS} diff --git a/scripts/uniqueErrors.sh b/scripts/uniqueErrors.sh index fa2c7b4c028d..3db12e853c4b 100755 --- a/scripts/uniqueErrors.sh +++ b/scripts/uniqueErrors.sh @@ -6,9 +6,9 @@ echo "Finding unique failures..." ( for x in $* do - echo -n $x " # " - # This subshell is a workaround to prevent the shell from printing - # "Aborted" - ("$REPO"/build/test/tools/solfuzzer < "$x" || true) 2>&1 | head -n 1 + echo -n $x " # " + # This subshell is a workaround to prevent the shell from printing + # "Aborted" + ("$REPO"/build/test/tools/solfuzzer < "$x" || true) 2>&1 | head -n 1 done ) | sort -u -t'#' -k 2 diff --git a/scripts/wasm-rebuild/docker-scripts/genbytecode.sh b/scripts/wasm-rebuild/docker-scripts/genbytecode.sh index ef28d59a4172..f803f07831f8 100755 --- a/scripts/wasm-rebuild/docker-scripts/genbytecode.sh +++ b/scripts/wasm-rebuild/docker-scripts/genbytecode.sh @@ -85,8 +85,8 @@ for (var optimize of [false, true]) } } catch (e) { console.log(filename + ': FATAL ERROR') - console.error(filename) - console.error(inputs) + console.error(filename) + console.error(inputs) } } }