From ee04489eeffd5efedfbc77baee133df2692dbe3c Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 15 Dec 2015 18:13:22 -0500 Subject: Fix destructive operation; replaced with non-destructive operation. [long sigh] --- scripts/cbc_repo_copy | 5 ++--- 1 file 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 . -- cgit