From 581fb3af82cb350f5ba2ac4de295ce2778ba7236 Mon Sep 17 00:00:00 2001 From: Clara van Staden Date: Thu, 19 Sep 2024 10:21:54 +0200 Subject: [PATCH] fix clone (#1293) --- scripts/init.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/init.sh b/scripts/init.sh index 779c6f5525..78df75494e 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -4,8 +4,7 @@ set -eux echo "Checkout polkadot-sdk" pushd .. - if [[ -d ../polkadot-sdk ]] && (cd ../polkadot-sdk && git rev-parse --is-inside-work-tree) 2>&1 >/dev/nu - ls; then + if [[ -d polkadot-sdk ]] && (cd polkadot-sdk && git rev-parse --is-inside-work-tree > /dev/null 2>&1); then echo "polkadot-sdk already exists" else repoURL="${POLKADOT_SDK_REPO:-https://github.com/paritytech/polkadot-sdk.git}"