aboutsummaryrefslogtreecommitdiff
path: root/scripts/cbc_repo_copy
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/cbc_repo_copy')
-rwxr-xr-xscripts/cbc_repo_copy5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/cbc_repo_copy b/scripts/cbc_repo_copy
index ff036ed..6ada4b9 100755
--- a/scripts/cbc_repo_copy
+++ b/scripts/cbc_repo_copy
@@ -6,11 +6,10 @@ get_os_info
REPO="$(get_conda_repo)"
REPO_NEW="$OS-$ARCH"
-if [ -d "$REPO_NEW" ]; then
- rm -rf "$REPO_NEW"
+if [ ! -d "$REPO_NEW" ]; then
+ mkdir -p "$REPO_NEW"
fi
-mkdir -p $REPO_NEW
rsync -aH --progress "$REPO"/ "$REPO_NEW"
cd "$REPO_NEW"
conda index .