Skip to content

Commit

Permalink
Ensure latest version of backups2datalad is installed on every run
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Jan 23, 2024
1 parent e48b529 commit 3931d55
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tools/backups2datalad-cron-common
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,19 @@ backup_root="$(dirname "$ds")"
source ~/.bashrc-miniconda
conda activate dandisets-2

cd "$ds"
if pip show backups2datalad >/dev/null 2>&1
then
# Uninstall backups2datalad so that the subsequent `pip install` will
# always install the latest code
chronic pip uninstall --yes backups2datalad
fi
chronic pip install git+https://github.com/dandi/backups2datalad

: "${DATALAD_LOG_LEVEL:=WARNING}" # otherwise too much noise
export DATALAD_LOG_LEVEL

cd "$ds"

mkdir -p .git/tmp

source .git/secrets
Expand Down

0 comments on commit 3931d55

Please sign in to comment.