diff options
-rwxr-xr-x | scripts/cbc_repo_copy | 5 |
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 . |