From 38db6357e3158a6130492f1cbe255c36d2eee75a Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Wed, 11 Aug 2010 11:36:53 -0700 Subject: [PATCH] only clone config if it doesn't exist --- newbox | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/newbox b/newbox index f9821c1..0c64e01 100755 --- a/newbox +++ b/newbox @@ -30,7 +30,9 @@ if ! which git >/dev/null 2>&1; then fi cd ~ -git clone git://github.com/samsonjs/config || fail "cannot clone config repo" +if [[ ! -d config ]]; then + git clone git://github.com/samsonjs/config || fail "cannot clone config repo" +fi for FILE in config/*; do pushd "$HOME"