From 893a5b6e60fb8aedb882f9b2c90faed518cab287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Fri, 11 Dec 2020 19:22:06 +0100 Subject: [PATCH] Remove unused variables --- .circleci/soltest.sh | 1 - scripts/common_cmdline.sh | 1 - scripts/install_cmake.sh | 1 - scripts/release_ppa.sh | 1 - scripts/tests.sh | 4 ++-- scripts/wasm-rebuild/docker-scripts/patch.sh | 7 ++++--- 6 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.circleci/soltest.sh b/.circleci/soltest.sh index 3eb15d051..a974386f9 100755 --- a/.circleci/soltest.sh +++ b/.circleci/soltest.sh @@ -36,7 +36,6 @@ set -e OPTIMIZE=${OPTIMIZE:-"0"} EVM=${EVM:-"invalid"} -WORKDIR=${CIRCLE_WORKING_DIRECTORY:-.} REPODIR="$(realpath $(dirname $0)/..)" source "${REPODIR}/scripts/common.sh" diff --git a/scripts/common_cmdline.sh b/scripts/common_cmdline.sh index 1d21fe75c..33943d80f 100644 --- a/scripts/common_cmdline.sh +++ b/scripts/common_cmdline.sh @@ -49,7 +49,6 @@ function compileFull() fi local files="$*" - local output local stderr_path=$(mktemp) diff --git a/scripts/install_cmake.sh b/scripts/install_cmake.sh index 134b86f09..64647645e 100755 --- a/scripts/install_cmake.sh +++ b/scripts/install_cmake.sh @@ -27,7 +27,6 @@ if test -f $BIN/cmake && ($BIN/cmake --version | grep -q "$VERSION"); then else FILE=cmake-$VERSION-$OS-x86_64.tar.gz URL=https://cmake.org/files/v$VERSION_MAJOR.$VERSION_MINOR/$FILE - ERROR=0 TMPFILE=$(mktemp --tmpdir cmake-$VERSION-$OS-x86_64.XXXXXXXX.tar.gz) echo "Downloading CMake ($URL)..." wget "$URL" -O "$TMPFILE" -nv diff --git a/scripts/release_ppa.sh b/scripts/release_ppa.sh index 5cc83c020..0a1ef62c4 100755 --- a/scripts/release_ppa.sh +++ b/scripts/release_ppa.sh @@ -113,7 +113,6 @@ wget -O ./solc/deps/downloads/jsoncpp-1.9.3.tar.gz https://github.com/open-sourc cd solc version=$($(dirname "$0")/get_version.sh) commithash=$(git rev-parse --short=8 HEAD) -committimestamp=$(git show --format=%ci HEAD | head -n 1) commitdate=$(git show --format=%ci HEAD | head -n 1 | cut - -b1-10 | sed -e 's/-0?/./' | sed -e 's/-0?/./') echo "$commithash" > commit_hash.txt diff --git a/scripts/tests.sh b/scripts/tests.sh index 11191c86e..f5894471f 100755 --- a/scripts/tests.sh +++ b/scripts/tests.sh @@ -109,9 +109,9 @@ do then if [ -n "$optimize" ] then - log=--logger=JUNIT,error,$log_directory/opt_$vm.xml $testargs + log=--logger=JUNIT,error,$log_directory/opt_$vm.xml else - log=--logger=JUNIT,error,$log_directory/noopt_$vm.xml $testargs_no_opt + log=--logger=JUNIT,error,$log_directory/noopt_$vm.xml fi fi diff --git a/scripts/wasm-rebuild/docker-scripts/patch.sh b/scripts/wasm-rebuild/docker-scripts/patch.sh index a03fc73d0..0c536b46c 100755 --- a/scripts/wasm-rebuild/docker-scripts/patch.sh +++ b/scripts/wasm-rebuild/docker-scripts/patch.sh @@ -1,7 +1,8 @@ #!/bin/bash -TAG="$1" -SOLJSON_JS="$2" - # If we ever want to patch the binaries e.g. for compatibility with older solc-js versions, # we can do that here. +# +# This script gets the following parameters: +# - TAG +# - SOLJSON_JS