From 8b8565c873466a6f2f9a38e03819e46edbd90894 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 20 Jun 2018 22:50:32 +0200 Subject: [PATCH] Simplify code regarding eth in tests.sh --- scripts/tests.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/tests.sh b/scripts/tests.sh index 7fb260bc0..a3b1b0d5a 100755 --- a/scripts/tests.sh +++ b/scripts/tests.sh @@ -88,12 +88,12 @@ function download_eth() ETH_BINARY=aleth_2018-06-20_artful ETH_HASH="02e6c4b3d98299885e73f7db6c9e3fbe3d66d444" fi - wget -q -O /tmp/test/eth https://github.com/ethereum/cpp-ethereum/releases/download/solidityTester/$ETH_BINARY - test "$(shasum /tmp/test/eth)" = "$ETH_HASH /tmp/test/eth" - sync - chmod +x /tmp/test/eth - sync # Otherwise we might get a "text file busy" error ETH_PATH="/tmp/test/eth" + wget -q -O $ETH_PATH https://github.com/ethereum/cpp-ethereum/releases/download/solidityTester/$ETH_BINARY + test "$(shasum $ETH_PATH)" = "$ETH_HASH $ETH_PATH" + sync + chmod +x $ETH_PATH + sync # Otherwise we might get a "text file busy" error fi }