From 47346a9074b25a0973173089410cafac59736587 Mon Sep 17 00:00:00 2001 From: Will Holland Date: Thu, 10 Sep 2015 16:42:14 +0100 Subject: Case where definitions already exists --- get_definitions.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'get_definitions.sh') diff --git a/get_definitions.sh b/get_definitions.sh index d97648d..282dcaf 100644 --- a/get_definitions.sh +++ b/get_definitions.sh @@ -1,6 +1,8 @@ #!/bin/sh set -e -git clone ssh://git@cu010-trove.codethink.com/baserock/baserock/definitions.git +if [ ! -d "$DIRECTORY" ]; then + git clone ssh://git@cu010-trove.codethink.com/baserock/baserock/definitions.git +fi cd definitions git fetch git checkout cu010-trove/br6/firehose-test-1 -- cgit v1.2.1