From 452419318c53cfe80a085be095a758f0f6070a51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Wed, 12 Jun 2019 19:41:31 +0200 Subject: [PATCH] build_nim.sh: Nim cloning now works with no cache dir present --- build_nim.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build_nim.sh b/build_nim.sh index a3c4aed69..3a2e0467f 100755 --- a/build_nim.sh +++ b/build_nim.sh @@ -39,10 +39,11 @@ nim_needs_rebuilding() { REBUILD=0 NO_REBUILD=1 + if [[ ! -e "$NIM_DIR" ]]; then + git clone --depth=1 https://github.com/status-im/Nim.git "$NIM_DIR" + fi + if [[ -n "$CI_CACHE" && -d "$CI_CACHE" ]]; then - if [[ ! -e "$NIM_DIR" ]]; then - git clone --depth=1 https://github.com/status-im/Nim.git "$NIM_DIR" - fi cp -a "$CI_CACHE"/* "$NIM_DIR"/bin/ || true # let this one fail with an empty cache dir fi