diff options
author | Joseph Hunkeler <jhunk@stsci.edu> | 2015-12-15 18:13:22 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunk@stsci.edu> | 2015-12-15 18:13:22 -0500 |
commit | ee04489eeffd5efedfbc77baee133df2692dbe3c (patch) | |
tree | 11e83d99e1080b82999abf6c4ba8fd03872d98c2 | |
parent | e2d622813533fe1291da547688c0442a61a4ba21 (diff) | |
download | cbc-ee04489eeffd5efedfbc77baee133df2692dbe3c.tar.gz |
Fix destructive operation; replaced with non-destructive operation. [long sigh]
-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 . |