diff options
Diffstat (limited to 'scripts/cbc_repo_copy')
-rwxr-xr-x | scripts/cbc_repo_copy | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/cbc_repo_copy b/scripts/cbc_repo_copy new file mode 100755 index 0000000..ff036ed --- /dev/null +++ b/scripts/cbc_repo_copy @@ -0,0 +1,16 @@ +#!/bin/bash +EXEC_PATH=$(dirname "${BASH_SOURCE[0]}") +source "$EXEC_PATH/cbc_functions.inc" + +get_os_info +REPO="$(get_conda_repo)" +REPO_NEW="$OS-$ARCH" + +if [ -d "$REPO_NEW" ]; then + rm -rf "$REPO_NEW" +fi + +mkdir -p $REPO_NEW +rsync -aH --progress "$REPO"/ "$REPO_NEW" +cd "$REPO_NEW" +conda index . |