aboutsummaryrefslogtreecommitdiff
path: root/scripts/cbc_repo_copy
blob: 6ada4b941f8fca72912c5a057e36a86bfa7ce82e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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
    mkdir -p "$REPO_NEW"
fi

rsync -aH --progress "$REPO"/ "$REPO_NEW"
cd "$REPO_NEW"
conda index .