aboutsummaryrefslogtreecommitdiff
path: root/scripts/cbc_repo_copy
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunk@stsci.edu>2015-12-15 18:13:22 -0500
committerJoseph Hunkeler <jhunk@stsci.edu>2015-12-15 18:13:22 -0500
commitee04489eeffd5efedfbc77baee133df2692dbe3c (patch)
tree11e83d99e1080b82999abf6c4ba8fd03872d98c2 /scripts/cbc_repo_copy
parente2d622813533fe1291da547688c0442a61a4ba21 (diff)
downloadcbc-ee04489eeffd5efedfbc77baee133df2692dbe3c.tar.gz
Fix destructive operation; replaced with non-destructive operation. [long sigh]
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 .